- /* 5 program of even and odd number */
- #include<stdio.h>
- #include<conio.h>
- void main()
- {
- int n,quotient;
- clrscr();
- printf("Enter a number :");
- scanf("%d",&n);
- quotient=n/2;
- if(quotient*2==n)
- printf("even number ");
- else
- printf("odd number");
- getch();
- }
No comments:
Post a Comment