Answers for "input and output in cpp"

C++
4

how to get input in cpp

// i/o example

#include <iostream>
using namespace std;

int main ()
{
  int i;
  cout << "Please enter an integer value: ";
  cin >> i;
  cout << "The value you entered is " << i;
  return 0;
}
Posted by: Guest on November-03-2020

Code answers related to "input and output in cpp"

Browse Popular Code Answers by Language