+ 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 odpowiedzi
+ 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.



