Please can someone tell me that how can I get output in c language with scanf | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please can someone tell me that how can I get output in c language with scanf

6th Nov 2020, 10:57 AM
Krishna Varshney
Krishna Varshney - avatar
3 Answers
+ 4
You can literally Google it ,use sololearn for any doubt you have after doing the above
6th Nov 2020, 11:04 AM
Abhay
Abhay - avatar
+ 1
int x; printf("Enter a number > "); scanf("%d",&x); printf("\nYou entered %d\n",x);
6th Nov 2020, 11:02 AM
Slick
Slick - avatar
0
Just to be certain there is no confusion, scanf only does input. Use printf to send output to the console.
6th Nov 2020, 4:11 PM
Brian
Brian - avatar