//hi i m luv if my program is helpful for u plzzzz share my program//
// plzzz share my blog:-luvyadav1910.blogspot.com
#include<iostream.h>
#include<fstream.h>
#include<stdio.h>
#include<conio.h>
#include<math.h>
#include<graphics.h>
#include<process.h>
int main()
{
clrscr();
char ch,ch1;
float r,area,circum;
cout<<"\nCircle:";
cout<<"\n1.Area";
cout<<"\n2.Circumference";
cout<<"\n3.Exit"<<"\n";
cout<<"Enter your choice:";
do
{
cin>>ch;
if(ch=='1'|| ch=='2')
{
cout<<"Enter the value of radius:";
cin>>r;
}
switch(ch)
{
case'1':area=3.14*(r*r);
cout<<"area:"<<area;
break;
case'2':circum=2*3.14*r;
cout<<"circumference:"<<circum;
break;
case'3':cout<<"breaking:";
exit(0);
default:cout<<"Wrong choice!!!";
cout<<"Enter a valid one";
break;
}
cout<<"\nWant to enter more (y/n)?:";
cin>>ch1;
if(ch1=='y'|| ch1=='y')
cout<<"again enter your choice (1-3):";
}
while(ch1=='y'|| ch1=='y');
{
textcolor(YELLOW);
textbackground(BLUE);
gotoxy(25,15);
cprintf("\nthanxxx for visiting\n");
textcolor(YELLOW);
textbackground(BLUE);
gotoxy(32,16);
cprintf("\nluvyadav1910.blogspot.com\n");
textcolor(YELLOW);
textbackground(BLUE);
gotoxy(30,17);
cprintf("\nfacebook:-LUV YADAV\n");
getch();
return(0);
}
}
https://www.facebook.com/yadavluv378/?ref=bookmarks
// plzzz share my blog:-luvyadav1910.blogspot.com
#include<iostream.h>
#include<fstream.h>
#include<stdio.h>
#include<conio.h>
#include<math.h>
#include<graphics.h>
#include<process.h>
int main()
{
clrscr();
char ch,ch1;
float r,area,circum;
cout<<"\nCircle:";
cout<<"\n1.Area";
cout<<"\n2.Circumference";
cout<<"\n3.Exit"<<"\n";
cout<<"Enter your choice:";
do
{
cin>>ch;
if(ch=='1'|| ch=='2')
{
cout<<"Enter the value of radius:";
cin>>r;
}
switch(ch)
{
case'1':area=3.14*(r*r);
cout<<"area:"<<area;
break;
case'2':circum=2*3.14*r;
cout<<"circumference:"<<circum;
break;
case'3':cout<<"breaking:";
exit(0);
default:cout<<"Wrong choice!!!";
cout<<"Enter a valid one";
break;
}
cout<<"\nWant to enter more (y/n)?:";
cin>>ch1;
if(ch1=='y'|| ch1=='y')
cout<<"again enter your choice (1-3):";
}
while(ch1=='y'|| ch1=='y');
{
textcolor(YELLOW);
textbackground(BLUE);
gotoxy(25,15);
cprintf("\nthanxxx for visiting\n");
textcolor(YELLOW);
textbackground(BLUE);
gotoxy(32,16);
cprintf("\nluvyadav1910.blogspot.com\n");
textcolor(YELLOW);
textbackground(BLUE);
gotoxy(30,17);
cprintf("\nfacebook:-LUV YADAV\n");
getch();
return(0);
}
}
https://www.facebook.com/yadavluv378/?ref=bookmarks
dhashu sir ji ,,aap to gzb k programmmer ho
ReplyDeleteThanxxx techee era
ReplyDelete