0
Area of any circle
Posted by ေမၿမဳိ့သား
on
12:31 PM
in
C++ for 1st year
#include "stdafx.h"
#include<iostream>
#include<conio.h>
#include<stdlib.h>
using namespace std;
void main()
{
float p=3.1415,area;
int r;
cout<<endl<<endl;
cout<<"Enter your radius....";
cin>>r;
cout<<"\n\n";
area=p*r*r;
cout<<"That is my circle area..."<<area;
getch(); // getch --> so yin header file mar #include<connio.h> hte`
}
#include<iostream>
#include<conio.h>
#include<stdlib.h>
using namespace std;
void main()
{
float p=3.1415,area;
int r;
cout<<endl<<endl;
cout<<"Enter your radius....";
cin>>r;
cout<<"\n\n";
area=p*r*r;
cout<<"That is my circle area..."<<area;
getch(); // getch --> so yin header file mar #include<connio.h> hte`
}
Post a Comment