Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Write a program which input three numbers (int a.b.c ; cin>a>b>c; ) and calculate the average of three numbers (int averag =(a+b+c)/3; ). Output

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
1. Write a program which input three numbers (int a.b.c ; cin>a>b>c; ) and calculate the average of three numbers (int averag =(a+b+c)/3; ). Output your result. 3.(Optional) Write a program which accepts a character (char ch: cin ch;) and display its next character(char next =++ ch; cout ? a) directive b) pre-processor directive c) file 2. If we were to not declare using namespace std, could we still somehow use cout and cin? a) Yes b) No 3. What would be required to use cout withouth declaring namespace a) Nothing b) std::cout

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions