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

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

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.

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.

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.

A leap year is a year which has 366 days. The Additional day is the 29^{th} February. There is a leap year of every four years.

A calendar year of 366 days, February 29^{th} (leap day) being the extra day, that occurs every four years (those whose number is divisible by four) except for century years whose number is not divisible by 400. It offsets the difference between the length of the solar year (365.2422 days) and the calendar year of 365 days.

A calendar year of 366 days, February 29

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

#include<stdio.h> #include<math.h> #define pf printf int main() { int x,y,i,j; //taking the number to continue loop as start point pf("Enter first year: "); scanf("%d",&x); //taking the number to stop loop pf("\nEnter the second year: "); scanf("%d",&y); //in the loop calculation is running to find leap year for(i=x;i<=y;i++) { if(i%4==0) { if(i%100==0) { if(i%400==0) pf("\n%d is leap year.",i); else pf("\n%d is not leap year.",i); } else pf("\n%d is leap year.",i); } else pf("\n%d is not leap year.",i); } return 0; }

Enter first year: 1900 Enter the second year: 1910 1900 is not leap year. 1901 is not leap year. 1902 is not leap year. 1903 is not leap year.

1904 is leap year.

1905 is not leap year. 1906 is not leap year. 1907 is not leap year.

1908 is leap year.

1909 is not leap year. 1910 is not leap year.

- Bonus on employment salary
- Leap year
- Input any key from key-board and display key's feature
- Find large number of two or three given numbers
- 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}

© 2018 - All rights reserved