Area of circle using Inline function
//
// main.cpp
// inline function
//
// Created by ANKIT KUMAR on 24/03/21.
//
#include <iostream>
using namespace std;
float area(int rad)
{
float a;
a = 3.14 * rad * rad;
return a;
}
int main()
{
float ac;
ac= area(15);
cout<<ac;
}
Comments
Post a Comment