C Programming Tutorial-6: Receive Input from Users Using scanf()

In this tutorial we’ll learn to accept input from users in C programs. Just as we use the printf() function to display content on the screen (the default output device), we use the scanf() function to receive input through the keyboard (the default input device).

Thank you for watching!

Comments

Shreyansh gokhru says:

hai this code is not working can you help why..
main()
{
char a,b;
printf(“enter the characters”);
scanf(“%c%c”, &a, &b);
}

if i put a space between “%c %c” it worked why is it so ?

CLEMENT CU says:

NAISSSE…
Tks bud !

Omer Ayad says:

i want arbic cc

Nik Sankovich says:

really great tutorial. clear and concise;thanks!

HikikomoriGamer says:

pure genius! Thanks!

sowmya ug says:

your tutorials were awesome so its my humble request is to please add c++ and Java tutorials so that I and other people can learn from you and thank u for all u r tutotials

AllenWalkerKC says:

Man you’re boss. I am gonna take Programming in the summer and this is helping a lot. Btw, love your accent bro hehe. Peace and subscribed

 Write a comment

*

Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!