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

Popular posts from this blog

Use of function in mathematics

My resume using HTML and CSS