Write C Program To Check Odd And Even Numbers
1: #include <stdio.h>
2: int main()
3: {
4: int n;
5: printf("Enter an integer\n");
6: scanf("%d", &n);
7: if (n%2 == 0)
8: printf("Even");
9: else
10: printf("Odd");
11: return 0;
12: }
No comments:
Post a Comment