#include<stdio.h>
int main() {
float l,b,p;
scanf("%f%f",&l,&b);
p=2*(l+b);
printf("perimeter is %f:\n ",p);
return 0;
}
int main() {
float l,b,p;
scanf("%f%f",&l,&b);
p=2*(l+b);
printf("perimeter is %f:\n ",p);
return 0;
}
Input:
3.5
4.2
Output
perimeter is 15.400000:
No comments:
Post a Comment