C User Input

User Input

  • You have already learned that printf() is used to output values in C.

(আপনি ইতিমধ্যে শিখেছেন যে printf() ব্যবহার করা হয় সি-তে মান আউটপুট করতে।)

  • To get user input, you can use the scanf() function: scanf(parameter1, parameters2).

(ব্যবহারকারীর ইনপুট পেতে, আপনি scanf() ফাংশন ব্যবহার করতে পারেন:)

  • parameter1 = inside " " Data Type.

  • parameter2 = variable name/ value.

Example :

Example :(Output the name of a user)