#include<iostream>
using namespace std;
 int sqr(int);
 int main()
 {
     int a;
     cout<<"Enter number : ";     cin>>a;
     sqr(a);
 }
 int sqr(int x)
 {
     int b;
     b=x*x;
     cout<<"Square of "<<x<<" is "<<b;
     return 0;
 }

Output

Leave a Reply

Your email address will not be published. Required fields are marked *