The test expression done on exact statement. The good habit of using test expression on exact or fulfill statement. So do not use floating point numbers for checking for equality in the test expression.

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.

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.

Missing the inclusion of appropriate header file in c program will generate an error. Such a program may compile but the linker will given an error message as it will not be able to find the functions used in the program.

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

// 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,i; //taking the number to continue loop pf("Enter any integer number: "); scanf("%d",&n); pf("\nThe multiplication table of %d is below.",n); for(i=0;i<=10;i++) pf("\n\t%d X %d = %d",n,i,(n*i)); //printing multiplication table return 0; }

Enter any integer number: 4 The multiplication table of 4 is below. 4 X 0 = 0 4 X 1 = 4 4 X 2 = 8 4 X 3 = 12 4 X 4 = 16 4 X 5 = 20 4 X 6 = 24 4 X 7 = 28 4 X 8 = 32 4 X 9 = 36 4 X 10 = 40

- Print first N natural number
- Print N natural number in a given range ( ascending way )
- Summation of first N natural number
- Calculate sum and average of first N natural number
- Print natural number in a given range ( decending way )
- Factorial of an integer number
- Input any key from key-board and display key's feature
- Calculate Summation of this series 1 + 1/2
^{2}+ 1/3^{2}+ ...... + 1/x^{2} - Calculate Summation of this series 1/2
^{2}+ 1/3^{3}+ ...... + 1/(x+1)^{(x+1)} - Calculate Summation of this series 1 + 2
^{2}/2 + 3^{2}/3 + ...... + x^{2}/x - Print 1 3 6 10 15 21 ........ this series

© 2018 - All rights reserved