C++ Program – Square of Nos
by Nideesh C on May 2, 2011 · 0 comments
in C++
//Downloaded From theonlinetutorials.com
//(C)1999.All rights reserved.
#include<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{
clrscr();
float a,b,c,d,e;
cout<<"Enter a number :"<<endl;
cin>>a;
b=pow(a,2);
c=pow(a,3);
d=pow(a,4);
e=pow(a,5);
cout<<"Result = "<<b<<","<<c<<","<<d<<","<<e;
getch();
}
Not Satisfied ? Just search & get the result
Related posts:
- Sample – compute square roots using Newton’s method
- C++ program – Sum of n even Nos
- C Program To find the sum of the cos series
- C++ program – Square or Cube According Input
- C++ program – Implementation of class
Me, freelance system administrator having the qualification of Diploma in Electronics & Tele-communication + MCSE + CCNA + CST + 5 years of experience in IT field.
If you like This post, you can follow TheOnlineTutorials on Twitter.
Contact me Via email: support@theonlinetutorials.com
Subscribe to feed via Feed or EMAIL to receive instant updates.
Legal Disclaimer:All information found on the site is without any implied warranty of fitness for any purpose or use whatsoever. Content author/site administrator is not responsible for any loss occurred due to mistakes in this tutorial. Use this tutorial website at your own risk.