Write a program to find an area of rectangle and square
Answers
Answered by
0
Answer:
C Program
#include <stdio.h>
int main()
{
int width=5;
int height=10;
int area=width*height;
printf("Area of the rectangle=%d",area);
}
Answered by
0
area of rectangle:
C Program
#include <stdio.h>
int main()
{
int width=5;
int height=10;
int area=width*height;
printf("Area of the rectangle=%d",area);
}
area of square:
#include<stdio.h>
int main() {
int side, area;
printf("\nEnter the Length of Side : ");
scanf("%d", &side);
area = side * side;
printf("\nArea of Square : %d", area);
return (0);
}
pls mark as brainlist...
Similar questions
English,
2 months ago
Math,
2 months ago
Social Sciences,
2 months ago
Computer Science,
5 months ago
Physics,
5 months ago
Physics,
9 months ago