Square a number and root of a number calculate using inheritance Test Case 1 Input (stdin) 2 25 Expected Output 45 Test Case 2 Input (stdin) 5 100 Expected Output 2510
#include <iostream>
#include<math.h>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
cout<<a*a<<sqrt(b);
return 0;
}