#include void main() { int a; printf("enter no.\n"); scanf("%d",&a); (a%2==0)?printf("even no.\n"):printf("odd no.\n"); } Output:
No comments: