#include <stdio.h> int main() { int num; printf("enter a num"); scanf("%d",&num); (num%2==0)?printf("%d is even",num):printf("%d is odd",num); }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter