Home Top Ad

Responsive Ads Here

Write a program to Area of Rectangle in C

Share:

 #include <stdio.h>


int main() {

    int a,b,area;

    printf("Enter side lenth a");

    scanf("%d",&a);

printf("Enter side lenth b");

    scanf("%d",&b);

    area = a*b;

    printf("area of rect is:%d",area);

    return 0;

}

*******************************Output*****************************************

Enter side lenth a5

Enter side lenth b10

area of rect is:50


=== Code Execution Successful ===

Post a Comment

No comments

Welcome to saveracom.blogspot.com

Data Science using Spreadsheet Software Assignment 3

Printing Workbooks select the cells you want to print and then set that area as the print area   Steps to set a print area: Select the cells...