In the following code the variable integerFromUser
is not properly declared. Write the command that needs to be put instead of the text // ??? //
in order to obtain a valid C++ source file.
#include<iostream> int main(){ // ??? // std::cin>>integerFromUser; long squareOfTheNumber; squareOfTheNumber=integerFromUser*integerFromUser; std::string message; message="The square of the inserted number is"; std::cout<<message<<" "<<squareOfTheNumber<<"\n"; return 0; }