Write a code that takes a whole number from user for C using
 Write a code that takes a whole number from user for C++ using visual studios.
  Write a code that takes a whole number from user for C++ using visual studios.
Solution
#include <iostream> // library that contains basic input output functions
 using namespace std;
 int main() {
int number;// declaring number
cout << \"Enter number: \" << endl;// prompting to user
 cin >> number;// taking number from input
 cout<< \"The number you entered is \" << number << endl;// printing entered number with newline
 return 0;
 }

