[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/Raldiii/cpp-programming/main/OOP1-Lab5/Source.cpp [Back]  [Original]

//Practical Lab Assignment-7(Week 9)
//ID:U1910049 Name:Rustam Zokirov
//Program to calculate area of a circle using functions

#include 
#include //C++ libriry which is including "pow" and PI=3.14
using namespace std;
float area(float radius) {//function for calculating the area
	float area;
	area = (atan(1) * 4) * (pow(radius, 2));//"atan" is the function which is finding the PI=3.14 
	return area;
}//end function "area"
int main1() {
	float radius;
	cout > radius;//inputing the radius
	
	if (radius > 0) 
		cout 

Web Proxy Viewer  |  New URL  |  Original Page