#include<stdio.h> #include<stdlib.h> #include<stdbool.h> int main(){ double age=0; printf("enter your age:"); scanf("%lf",&age); printf("your age is:%lf\n",age); int x=0; double y=0; char c; scanf("%d%lf",&x,&y); printf("x=%d,y=%lf\n",x,y); printf("Input for second data:\n"); scanf("%d",&x); //fflush(stdin); scanf("%lf",&y); printf("x=%d\ny=%lf",x,y); printf("input charactor:\n"); scanf("%c",&c); printf("%c",c); return 0; }
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