Posts

Showing posts with the label input and output

C++ Programs Examples

 We can take input and output from user very easily. For input we use cin>>   and for output we use cout<< .  Assignment: Write a code/program that takes age of the user as input and print out  "You are age years old". For example if user enter his age 19 then your program should print "You are 19 years old". Dry Run: What is your age? 19 You are 19 years old.