6. Output Statement
Library Function Printf() Can be used to write
computer memory to standared output
device (monitor).
Syntax
Printf(“Message with format specifier”,variable name);
7. //Program to find the number even or odd.
1. #include<stdio.h>
2. void main()
3. {
4. int a;
5. clrscr();
6. printf(“Enter the number”);
7. scanf(“%d”,&a);
8. if(a/2==0)
9. {
10. printf(“%d is even number”,a);
11. }
12. else
13. {
14. printf(“%d is odd number”,a);
15. }
16. getch();
17. }