You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At a minimum, there should be something similar in grain, akin to this six line C++ program, to get user input. There should be documentation for this write up front in the Guide with a simple hello "name" program that lets the user input their name and it provides a greeting back.
#include<iostream>intmain() {
std::cout << "\nEnter an integer: ";
int num{};
std::cin >> num;
std::cout << num << " doubled is: " << num * 2 << '\n';
}
Output
Enter an integer: 25
25 doubled is: 50
The text was updated successfully, but these errors were encountered:
At a minimum, there should be something similar in grain, akin to this six line C++ program, to get user input. There should be documentation for this write up front in the Guide with a simple hello "name" program that lets the user input their name and it provides a greeting back.
Output
The text was updated successfully, but these errors were encountered: