Hi Friends ! You are on HR Developers website. Here you can find the codes of different languages like c ,c++ , java, pyton and many other languages.
#include<iostream>
using namespace std;
int squ(int);
int main()
{
int num,n;
cout<<"please enter a number for square:";
cin>>num;
n=squ(num);
cout<<"the square of this number is:"<<n<<endl;
}
int squ(int num)
return num*num;
No comments:
Post a Comment