// i/o program #include using namespace std; int main () { int i; cout << "Please enter an integer value: ";

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

// i/o program #include using namespace std; int main () { int i; cout << "Please enter an integer value: ";

Post by answerhappygod »

// i/o program
#include <iostream>
using namespace std;
int main ()
{
int i;
cout << "Please enter an integer value: ";
cin >> i;
cout << "The value you entered in the variable
whose name is " << "i= " << i
<< ".\n" ;
cout << " and its double is " <<
i*2 << ".\n";
return 0;
}
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply