+ 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 प्रोग्रामिंग से संबंधित है)

31st Jan 2018, 7:01 AM
Dîväkär Kûmär Pöddär
Dîväkär Kûmär Pöddär - avatar
3 Respuestas
+ 17
take 2 user inputs (double type) ... a & b print 2*(a+b);
31st Jan 2018, 7:37 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 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; }
31st Jan 2018, 8:09 AM
David Ashton
David Ashton - avatar
+ 1
I'm sorry I posted the wrong code.
31st Jan 2018, 7:52 AM
Akib
Akib - avatar