Simple c++ programs

#include<iostream>
using namespace std;
int main()
{
int i;

cout<<“hello world\n”;
cout<<“print the number\n”;
cin>>i;
cout<<i<< ” squared is”<<i*i;

return 0;
}

Advertisements