Answers for "take integer input in c++"

C++
1

take integer input in c++

#include <iostream>
using namespace std;
int main() {
  //Declare an int variable
  int a;
  //take input using the standard cin operator
  cin >> a;
  //display the integer
  cout << a;
  return 0;
}
Posted by: Guest on April-14-2021

Browse Popular Code Answers by Language