Program:
#include<stdio.h>
#include<conio.h>
void main( )
{
int a,l;
printf("\nEnter the length of the Square:");
scanf("%d",&l);
a=l*l;
printf("\nArea of the Square is %d",a);
}
Input/Output:
Enter the length of the Square:10
Area of the Square is 100
#include<stdio.h>
#include<conio.h>
void main( )
{
int a,l;
printf("\nEnter the length of the Square:");
scanf("%d",&l);
a=l*l;
printf("\nArea of the Square is %d",a);
}
Input/Output:
Enter the length of the Square:10
Area of the Square is 100
0 comments:
Post a Comment