c programing presentation by [email protected]

6
WELCOME TO OUR PRESENTATION

Upload: daffodil-international-university

Post on 14-Aug-2015

46 views

Category:

Engineering


6 download

TRANSCRIPT

Page 1: c programing presentation by Shishir1919@diu.edu.bd

WELCOME TO OUR PRESENTATION

Page 2: c programing presentation by Shishir1919@diu.edu.bd

GROUP MEMBER

NAME ID

Shishir

Page 3: c programing presentation by Shishir1919@diu.edu.bd

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(); }

Page 4: c programing presentation by Shishir1919@diu.edu.bd

start

read num

print num is even

stop

If num%2=0

print num is

odd

Yes No

Flowchart Solution

Page 5: c programing presentation by Shishir1919@diu.edu.bd

ALGORITHM SOLUTION Start Read num if(num%2=0) then print num is even otherwise print num is odd Stop

Page 6: c programing presentation by Shishir1919@diu.edu.bd

THANK YOU EVERYONE