perimeter of rectangle
#include<stdio.h>
#include<conio.h>
void main()
{int L,W,P;
printf("enter length");
scanf("%d",&L);
printf("enter width");
scanf("%d",&W);
P=2 * (L+W);
printf("P=%d",P);
}
#include<stdio.h>
#include<conio.h>
void main()
{int L,W,P;
printf("enter length");
scanf("%d",&L);
printf("enter width");
scanf("%d",&W);
P=2 * (L+W);
printf("P=%d",P);
}
No comments:
Post a Comment