Skip to main content

Posts

Showing posts with the label c program to find odd or even

Sample C Program To Check Leap Year Using Logical Operator & Functions

C Program To Read Three Numbers And Print The Biggest Of Given Three Numbers. # include <stdio.h> # include <conio.h> main( ) {     int a, b, c, big = 0;     clrscr( );     printf("Enter Value For A:");     scanf("%d",& a);     printf("Enter Value For B:");     scanf("%d",& b);     print("Enter Value For C:");     scanf("%d",& c);     if (a > big)         big = a ;     if(b > big)         big = b;     if (c > big)         big = c;     printf (“Biggest Of Above Given Three Number Is %d”, big)     getch( ); } C Program To Find Whether The Given Number Is Even Or Odd Using Modulus Operator. # include <stdio.h> # include <conio.h> main() {     int n, r;     clrscr();     printf("Enter a ...