[Let us C Solution ] C Program To FInd Area and Perimeter Of Rectangle And Circle


#include<stdio.h>
#include<windows.h>
#include<conio.h>
void main(){
float length,width,radius,area,perimeter,cir;
system("cls");
printf("\n\n\t\tFINDING AREA AND PERIMETER OF  RECTANGLE");
printf("\n\n\t\tENTER LENGTH OF RECTANGLES : ");
scanf("%f",&length);
printf("\n\n\t\tENTER BREDTH OF RECTANGLES : ");
scanf("%f",&width);
area=length*width;
perimeter=2*(length+width);
printf("\n\n\t\tAREA OF RECTANGLE :  %f",area);
printf("\n\n\t\tPERIMETER OF RECTANGLE :  %f",perimeter);
Sleep(1000);
printf("\n\n\t\tDO YOU WANA TO CONTINUE ......");
printf("\n\n\t\tPRESS ANY KEY TO CONTINUE...");
getch();
system("cls");
printf("\n\n\t\tENTER RADIUS OF CIRCLE : ");
scanf("%f",&radius);
cir=4*22/7*radius;
area=22/7*radius*radius;
printf("\n\n\t\tCIRCUMFEENCE OF CIRCLE :  %f",cir);
printf("\n\n\t\tAREA OF CIRCLE :  %f",area);
getch();

Comments

Popular posts from this blog

HTML Signup Login Form With Source Code