Computer Science, asked by rajudhap6369, 5 months ago

Write a program to find an area of rectangle and square

Answers

Answered by crazygirl60
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 shivaramcvm
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