Home Basic Loop Array string Function Pointer Contact STUDY

AHF    C    PROGRAM    SOLVING

Programming tips

Test expression



Working with switch case



Iterative statement



Specifer



" ; " after loop




Print even or odd number



// AHF C PROGRAM SOLVING

//solving here basic type of programming problem

#include<stdio.h> #include<math.h> #define pf printf int main() { int a; pf("Enter the number: "); scanf("%d",&a); //checking if there is any reminder or not if(a%2==0) { pf("\n The number is an EVEN number."); } else pf("\nThe number is an ODD number."); return 0; }
OUTPUT:


© 2018 - All rights reserved