Posts
Showing posts with the label C programming
38. Program to Display Prime Numbers Between Two Intervals
- Get link
- X
- Other Apps
37. Program to Check Whether a Number is Prime or Not
- Get link
- X
- Other Apps
36. Program to Check Whether a Number is Palindrome or Not
- Get link
- X
- Other Apps
32. Program to Display Character from A to Z Using Loop
- Get link
- X
- Other Apps
26. Program to Calculate Sum of Natural Numbers from 25 to 39
- Get link
- X
- Other Apps
25. Program to Check Whether a Character is an Alphabet or not
- Get link
- X
- Other Apps
24. Program to Check Whether a Number is Positive or Negative
- Get link
- X
- Other Apps
23. Program to Check Leap Year
- Get link
- X
- Other Apps
void main() { int year; clrscr(); printf("\n\t Enter a year to check if it is a leap year"); scanf("%d", &year); if ( year%400 == 0) printf("\n\t%d is a leap year", year); else if ( year%100 == 0) printf("\n\t %d is not a leap year", year); else if ( year%4 == 0 ) printf("\n\t %d is a leap year", year); else printf("\n\t %d is not a leap year", year); getch(); }
22. program to Find all Roots of a Quadratic equation
- Get link
- X
- Other Apps
21. Program to Find the Largest Number Among Three Numbers
- Get link
- X
- Other Apps