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.

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

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.

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

#include<stdio.h> #include<math.h> #define pf printf int main() { int number; int small=10000,count= 0,large= -10000; //declaring variable taking a sample statement pf("\nEnter any number. Enter 00 to exit........\t: "); scanf("%d",&number); //this input will start the loop while(number!=00) //ending condition of the loop { large=number>large?number:large; small=number<small?number:small; count++; //counting for total given input pf("\nEnter any number. Enter 00 to exit........\t: "); scanf("%d",&number); //this input will stop the loop } //printing the required statement pf("\n\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"); pf("\n\nThe largest number among %d numbers is: %d",count,large); pf("\n\nThe smallest number among %d numbers is: %d",count,small); pf("\nTotal given input= %d",count); return 0; }

Enter any number. Enter 00 to exit........ : 12

Enter any number. Enter 00 to exit........ : 23

Enter any number. Enter 00 to exit........ : 45

Enter any number. Enter 00 to exit........ : 3

Enter any number. Enter 00 to exit........ : 2

Enter any number. Enter 00 to exit........ : 1

Enter any number. Enter 00 to exit........ : 00

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

The largest number among 6 numbers is: 45

The smallest number among 6 numbers is: 1

Total given input= 6

Enter any number. Enter 00 to exit........ : 23

Enter any number. Enter 00 to exit........ : 45

Enter any number. Enter 00 to exit........ : 3

Enter any number. Enter 00 to exit........ : 2

Enter any number. Enter 00 to exit........ : 1

Enter any number. Enter 00 to exit........ : 00

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

The largest number among 6 numbers is: 45

The smallest number among 6 numbers is: 1

Total given input= 6

- Bonus on employment salary
- Print a multiplication table of Nth number
- 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} - Print wheather The given number is armstrong or not
- Print first N natural number
- Revers of a given number
- Enter a number and print summation each digits
- Enter a number and Print each digits as even or odd number
- Print all natural number from a range

© 2018 - All rights reserved