Showing posts with label c. Show all posts
~~ Looping Satement
are the staements excute one or more
statements excute one or more statement repeatedly several number of time …
that mean cycle system.
|
WE USE LOOP IN C---
** For loop
** while loop
** Do while loop
|
-------------------------------------------------------------------------------------------------------------------------
Loop In C
Write a program that will calculate the number of trailing zeros in a factorial of a given number
First off, let’s define a factorial for those of you who don’t remember what a factorial of a number is. A factorial of any non-negative integer number “x” is the product of all of the positive integers less than and equal to “x”. This means that the factorial of 4 is 4*3*2*1 which is 24, and the factorial of 6 is 6*5*4*3*2*1 which is 720.
What does the number of trailing zeros mean exactly?
Find the number of trailing zeros in factorial of any given number
Variable is an identifier which holds data or another one variable. It is an identifier whose value can be changed at the execution time of program. It is used to identify input data in a program.
Syntax
Variable_name = value;
Rules to declare a Variable
To Declare any variable in C language you need to follow rules and regulation of C Language, which is given below;
Variable in C
Header files contain definitions of functions and variables, which is imported or used into any C program by using the pre-processor #include statement. Header file have an extension ".h" which contains C function declaration and macro definition.
Header in c
C Tutorials
C is a computer programming language developed in 1972 by Dennis M. Ritchie at the Bell Telephone Laboratories to develop the UNIX Operating System. C is a simple and structure oriented programming language.
C is also called mother Language of all programming Language. It is the most widely use computer programming language, This language is used for develop system software and Operating System. All other programming languages were derived directly or indirectly from C programming concepts.



