Trusted by millions of Kenyans
Study resources on Kenyaplex

Get ready-made curriculum aligned revision materials

Exam papers, notes, holiday assignments and topical questions – all aligned to the Kenyan curriculum.

Write a program for input and output operations

Write a program for input and output operations

Answers


Kavungya
// This program demonstrates use of data streams cin for input and cout for output
#include
int main ( )
{
int i;
cout << “Please enter an integer value:”
cin >> i;
cout << “The value you have entered is “<cout << “and its double is “<return 0;
}
The output of the above program is as follows:-
- Please enter an integer value
- 444 (for example)
- The value you entered is 444 and its double is 888
Kavungya answered the question on May 15, 2019 at 14:44

Answer Attachments

Exams With Marking Schemes

Related Questions