WRITE A C PROGRAM TO CALCULATE THE AREA OF RECTANGLE USING INPUTS SUPPLIED BY THE USER .

 #include <stdio.h>


int main()

{

    int length,breadth,area;

    printf("Enter the length of rectangle\n");

    scanf("%d",&length);

    printf("Enter the breadth of rectangle\n");

    scanf("%d",&breadth);

    area=length*breadth;

    printf("area of rectangle is %d",area);

    return 0;

}


No comments:

Post a Comment

Programming in C Language

  PROGRAM LIST TO BECOME PRO IN C    😍😍😍            PRACTICE SETS                                                        UNIT -1  👇   IN...