/* Write a
program in c language the find area of square inputted number */
Area of square = a2
|
Void main()
{
Int area, side;
Printf(“enter the
side”);
Scanf(“%d”, side); //
input = 5
Area = side * side;
Printf(“ area of
square = %d “, area ); //
output = 25
}
Or,
#include<stdio.h>
Int main()
{
Int area, side;
Printf(“enter the
side”);
Scanf(“%d”, side);
Area = side * side;
Printf(“ area of
square = %d “, area );
Return 0;
}

0 Comments
If you have any doubts about the Programming language & Basic Computer. Please let me know.