8. waite a c++
Program
to input 20
numbers and display it?
Answers
Answered by
5
Explanation:
Example: Print Number Entered by User
#include <iostream>
using namespace std;
int main()
{
int number;
cout << "Enter an integer: ";
cin >> number;
cout << "You entered " << number;
return 0;
}
Output
Enter an integer: 23
You entered 23
This program asks user to enter a number.
When user enters an integer, it is stored in variable number using cin.
Answered by
0
Answer:
#include<iostream>
int main(){
int n=20;
std::cout<<n;
}
Explanation:
Similar questions