Square and cube

Description:

Write a C++ program using class to calculate area of a square and cube of given number using inline function Test Case 1 Input (stdin) 4 Expected Output Area of the square=16 Volume of the cube=64 Test Case 2 Input (stdin) 7 Expected Output Area of the square=49 Volume of the cube=343

Program :

#include <iostream>

using namespace std;

int main()

{

 int a,b,c;

  cin>>a;

  b=a*a;

  c=a*a*a;

  cout<<"Area of the square="<<b;

  cout<<"\nVolume of the cube="<<c;

    return 0;

}