1. Practical No.-1
Aim
: To demonstrate the program for square
of integer number.
Source code :
#include<iostream.h>
#include<conio.h>
void main()
{
int a, sq;
cout <<”enter the value of a”;
cin >>a;
sq=a*a;
cout<<”sq”<<sq;
}
Output
:
enter the value of a = 2
sq = 4