The iterative statement is one of the most important and interesting statements in the programming world. An iterative statement is used to repeat the execution of a list of statements, depending on the value of an integer expression.

Semoclone ( ; ) is one of the best sensitive symbols in programming. Placing a semicolon ( ; ) after the WHILE or FOR loop is not a syntax error. So it will not be reported by the compiler. However, it is considered to be a logical error as it change

When you are using SWITCH case, it is important to keep in mind that the inclusion of DEFAULT LABEL. This will inform you whether you are executing your program in right or wrong way. So, it is always recommended to use DEFAULT LABEL in the SWITCH st

Specifier is a typedef-name and a very sensitive in C programming. Using an incorrect specifier for the data type being read or written will generate a run time error.

Not putting // before the start of single statement comment is a compiler error. Not putting the */ after the termination of block comment is a compiler error.

The factorial, symbolized by an exclamation mark (!), is a quantity defined for all integer s greater than or equal to 0.

Mathematically, the formula for the factorial is as follows. If n is an integer greater than or equal to 1, then

n ! = n ( n - 1)( n - 2)( n - 3) ... (3)(2)(1)

If p = 0, then p ! = 1 by convention.

Mathematically, the formula for the factorial is as follows. If n is an integer greater than or equal to 1, then

n ! = n ( n - 1)( n - 2)( n - 3) ... (3)(2)(1)

If p = 0, then p ! = 1 by convention.

// AHF C PROGRAM SOLVING //solving here ITERATIVES STATEMENTS type of programming problem

#include<stdio.h> #include<math.h> #define pf printf int main() { int n,j,fact=1; //taking the number to continue loop pf("Enter any integer number: "); scanf("%d",&n); for(j=1;j<=n;j++) fact*=j; pf("\nThe factorial of %d is : %d",n,fact); return 0; }

Enter any integer number: 5

The factorial of 5 is : 120

The factorial of 5 is : 120

- Print whether given number is prime or composite
- Prime number in a range
- Leap year in a range
- Print a multiplication table of Nth number
- Print even and odd number in a range
- Calculate power i.e., calculate x
^{n} - Calculate Summation of this series 1 + 1/2 + 1/3 + ...... + 1/x
- Calculate Summation of this series 1 + 1/5 + 1/9 + 1/13 + ...... + 1/x
- Calculate Summation of this series 1 + 2
^{2}+ 3^{3}+ ...... + x^{x} - Calculate Summation of this series 1 + 2
^{2}+ 3^{2}+ ...... + x^{2} - Input any key from key-board and display key's feature
- Find large number of two or three given numbers
- Print ASCII value of a character and number
- Print all ASCII value
- Print vowel or consonant
- Find is the given number positive, negative and zero

© 2018 - All rights reserved