Write a program to fill the entire screen with a smiling face. The smiling face has an ASCII value 1.
Write a program to fill the entire screen with a smiling face. The smiling face has an ASCII value 1.
- Get link
- X
- Other Apps
Author:Blogspot Date: October 1, 2020*/
#include<stdio.h>
#include<conio.h>
main()
{
int length,breadth,area_of_rectangle, perimeter_of_rectangle,;
float radius, area_of_circle, circumfrencce_of_circle;
clrscr();
printf("Enter the length of rectangle:");
scanf("%d",&length);
printf("Enter the breadth of rectangle:");
scanf("%d",&breadth);
printf("Enter the radius of circle:");
scanf("%f",&radius);
area_of_rectangle= length*breadth;
perimeter_of_rectangle=(length+breadth)*2.0;
area_of_circle= (radius*radius)*22.0/7.0;
circumfrencce_of_circle= radius*2.0*22.0/7.0;
printf("\narea_of_rectangle=%d",area_of_rectangle);
printf("\nperimeter_of_rectangle=%d",perimeter_of_rectangle);
printf("\narea_of_circle=%f",area_of_circle);
printf("\ncircumfrencce_of_circle=%f",circumfrencce_of_circle);
getch();
return(0);
}
Comments
Post a Comment