2. WAP to input length and breadth of rectangle and display area.

Code

#include <stdio.h>
int main(){
    int l,b,a;
    printf("Enter the length: ");
    scanf("%d",&l);
    printf("Enter the breadth: ");
    scanf("%d",&b);
    a = l*b;
    printf("Area of rectangle is: %d",a);
    return 0;
}

Output

C Programming




0/Post a Comment/Comments

---[[ For More Inquiry Comment Down Below or Contact Us ]]---

Previous Post Next Post

Ads Before Post