c programing presentation by [email protected]
TRANSCRIPT
WELCOME TO OUR PRESENTATION
GROUP MEMBER
NAME ID
Shishir
TO FIND WHETHER A NUMBER EVEN OR ODD
#include<stdio.h> #include<conio.h> main() { int num; printf("Enter any number"); scanf("%d",&num); if(num%2==0) printf("%d is even",num); else printf("%d is odd",num);
getch(); }
start
read num
print num is even
stop
If num%2=0
print num is
odd
Yes No
Flowchart Solution
ALGORITHM SOLUTION Start Read num if(num%2=0) then print num is even otherwise print num is odd Stop
THANK YOU EVERYONE