Write a program that takes integer from user and show square, cube and square root of number.


Ø Coding of  Program



#include <iostream>
#include <math.h>
using namespace std;
int main()
{
float a, b;
cout<<"Enter any number"<<endl;
cin>>a;
cout<<"The square of number is"<<a*a<<endl;
cout<<"The Cube of the number is\n"<<a*a*a<<endl;
b=sqrt(a);
cout<<"Square root of number is\n"<<b<<endl;
cout<<"Student's Roll No:  K-F16-ES-33"<<endl;

}

1 comment:

Total Pageviews