
Please help me 

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;
}
and I'll take a look at VB.NET later then!
how do you make it print the real value (with something point etc) and when it saves it as a text file, each time i restart the programm it rewrites, so how could i make it continue in the same file?
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;
}
It looks very good but it says there a re lots of errors in main when i compile it with gcc (im on linux)
Copyright © 2026, NextGenUpdate.
All Rights Reserved.