+ 1
Write a program to input length and breadth of rectangle and calculate parameter of rectangle?
friends please solve this question question (दोस्तों कृपया इस प्रश्न को हल करें) this question is related to C programming (यह सवाल C प्रोग्रामिंग से संबंधित है)
3 ответов
+ 17
take 2 user inputs (double type) ... a & b
print 2*(a+b);
+ 9
Something like this? (based on code by @Akib Reza ☺️)
#include <stdio.h>
int main() {
float height,width;
scanf(" %f", &height);
scanf(" %f", &width);
float perimeter = 2*(width + height);
printf("Perimeter = %.3f", perimeter);
return 0;
}
+ 1
I'm sorry I posted the wrong code.