Code:
#include<stdio.h>
int main(){
int l,w;
printf("Enter the length of the ground\n");
scanf("%d",&l);
printf("Enter the width of the ground\n");
scanf("%d",&w);
printf("The length of the rope needed is %dm",(2*l)+(2*w));
printf("\nThe quantity of carpet needed is %dsqm",l*w);
return 0;
}
No comments