User input and standard output
suggest change#include <iostream>
int main()
{
int value;
std::cout << "Enter a value: " << std::endl;
std::cin >> value;
std::cout << "The square of entered value is: " << value * value << std::endl;
return 0;
}
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents