How to give Input in C? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to give Input in C?

In python we use simply input(). I am new in C. So how we give Input in C? I can't understanding it in C!

23rd Jun 2020, 11:54 AM
Ashik Ahmed
Ashik Ahmed - avatar
4 Answers
+ 1
But when we use like Int number; Scanf("%d", &number) Is it valid? It doesnt work
23rd Jun 2020, 12:07 PM
Ashik Ahmed
Ashik Ahmed - avatar
+ 10
Ashik Ahmed first letter of scanf and int will be in small letters
24th Jun 2020, 3:37 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
scanf() is used. for eg if we want to input value to an integer a .its like... scanf("%d",&a);
23rd Jun 2020, 12:03 PM
Keerthy Sivadas
Keerthy Sivadas - avatar
+ 2
Ashik Ahmed put your code in code- playground > save and share the link here scan not Scan etc... Its more convenient for you to understand and for us to explain;) Input & Output 👍 https://www.sololearn.com/learn/C/2914/
23rd Jun 2020, 12:43 PM
Daljeet Singh
Daljeet Singh - avatar