//prg to find sq + cube acc to input
//Downloaded From www.c4cpp.co.nr. (C)2009.All rights reserved.
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int n,s;
cout<<"Enter a no"<<endl;
cin>>n;
if((n%2)==0)
s=n*n;
else
s=n*n*n;
cout<<"Rsult = "<<s;
getch();
}
Programs Can Also Be Downloaded From The Folders Below....[Or Scroll Down]
Square or Cube Acc Input
Click Here To Download C++ File Of This Program
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment