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

preview_player
Показать описание
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!
Рекомендации по теме
Комментарии
Автор

Great tutorial! I was having a bit of trouble understanding scanf but you explained it perfectly in 3 minutes

sonicthehemphog
Автор

really great tutorial. clear and concise;thanks!

niksank
Автор

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

sowmyaug
Автор

Finally after, doing alot of Searches on YT & Google . I found this Useful Video.
Thank You

Abhinav_Prakash_Patil_
Автор

what if there are 2 differential numbers? using same %d works? thanks.

nuclearhominoidea
Автор

What about when you want to use characters instead of number?

melanie
Автор

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

AllenWalkerKC
Автор

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 ?

technicalboyshreyans
Автор

When i pressed enter it’s not showing the 2nd printf statement. Why?

uzumakinaruto-fryh
Автор

What happens if I enter a value other than an integer (e.g. character) ?

thabangofficial
Автор

Sis, introduce me to Salwa from Indonesia

I am here to ask permission to record a screen of this video . Karna is useful for my informatics assignment from school

once again Please permission, Sis🙏👍

sallwa
Автор

And my teachers fooled me saying I have to put an ampersand symbol before the variable while using in scanf. Without teaching me about pointers.
😅

blank-vwsb
Автор

i typed the same code but got the stored number in a is 0

lovepreetSingh-xmxc
Автор

this code is not working for me? kindley please help
int main(void) {
int a;
printf("Enter a number:");
scanf("%d", &a);
printf("You have entered: %d", a);

return EXIT_SUCCESS;
}

sarang_vs
welcome to shbcf.ru