#include <stdio.h> int main() { int a , b; printf("enter two integers : "), scanf("%d %d",&a,&b); if(a>b){ printf("%d is greater than %d",a,b); } if(a<b){ printf("%d is smaller than %d",a,b); } if(a==b){ printf("%d is equal to %d",a,b); } }
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