Header Ads Widget

Responsive Advertisement

How to calculate circumference of rectangle

 #include<stdio.h>

int main()

{

    float length,breath;

    float ci;

    printf("Enter the value of length\n : ");

    printf("Enter the value of breath\n : ");

    scanf("%f%f",&length,&breath);

    ci=2*length+2*breath;

    printf("Calculate the value of %f",ci);

    return 0;

    

}


Post a Comment

0 Comments