Get premium membership and access questions with answers, video lessons as well as revision papers.
// 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
- Write a C++ program that can compute and the sum and average of 15 numbers.(Solved)
Write a C++ program that can compute and the sum and average of 15 numbers.
Date posted: May 15, 2019. Answers (1)
- Describe Identifiers.(Solved)
Describe Identifiers.
Date posted: May 15, 2019. Answers (1)
- Differentiate between signed and unsigned integers.(Solved)
Differentiate between signed and unsigned integers.
Date posted: May 15, 2019. Answers (1)
- Define a variable.(Solved)
Define a variable.
Date posted: May 15, 2019. Answers (1)
- Describe the Typedef in programming.(Solved)
Describe the Typedef in programming.
Date posted: May 15, 2019. Answers (1)
- Describe constants in programming.(Solved)
Describe constants in programming.
Date posted: May 15, 2019. Answers (1)
- Give the three main types of constants.(Solved)
Give the three main types of constants.
Date posted: May 15, 2019. Answers (1)
- Define a selection control structure.(Solved)
Define a selection control structure.
Date posted: May 15, 2019. Answers (1)
- Describe the switch statement.(Solved)
Describe the switch statement.
Date posted: May 15, 2019. Answers (1)
- Describe the loop structure.(Solved)
Describe the loop structure.
Date posted: May 15, 2019. Answers (1)
- Describe the do while control structure.(Solved)
Describe the do while control structure.
Date posted: May 15, 2019. Answers (1)