using namespace std;
#include<iostream>
#include<stdio.h>
#include<math.h>
int radius (int a)
{
float pi;
pi = M_PI;
a = pi * (a*a);
return a;
}
int main()
{
int a;
cout << "\t\vThe Area of The Circle\n\n\n";
cout << "This will also save as a file named Results\n";
cout << "\tWhat is the Radius?\n";
cin >> a;
cout << "The answer is: "<< radius(a) <<"\n";
return 0;
}
using namespace std;
#include<iostream>
#include<stdio.h>
#include<math.h>
int radius (int a)
{
float pi;
pi = M_PI;
a = pi * (a*a);
return a;
}
int main()
{
int a;
cout << "\t\vThe Area of The Circle\n\n\n";
cout << "This will also save as a file named Results\n";
cout << "\tWhat is the Radius?\n";
cin >> a;
cout << "The answer is: "<< radius(a) <<"\n";
return 0;
}
Copyright © 2024, NextGenUpdate.
All Rights Reserved.