// 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;
}
// i/o program #include using namespace std; int main () { int i; cout << "Please enter an integer value: ";
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am