anonymous
  • anonymous
write a c++ prgm to find the cube of given number
Computer Science
jamiebookeater
  • jamiebookeater
See more answers at brainly.com
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this
and thousands of other questions

anonymous
  • anonymous
#include #include void main() { clrscr(); //to clear screen float cube(float); //function prototype float a,cu; cout<<"Enter any number:"; cin>>a; cu=cube(a); //function calling cout<<"\nCube of "<
anonymous
  • anonymous
oh...i want this in simple language
mathslover
  • mathslover
@A.Avinash_Goutham Please provide the link also .. -_-

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
not by using float
anonymous
  • anonymous
-.- printf("enter the number:"); scanf("%f",&x); x=x*x*x; printf("the cube of number %f",x);
anonymous
  • anonymous
replace %f with %d nd float with int
nick67
  • nick67
#include using namespace std; int main() { int value, cube; cin >> value; cube = value*value*value; cout << cube; return 0; }
anonymous
  • anonymous
help me to do this in simple manner
anonymous
  • anonymous
@nick67 can u write by giving the values
nick67
  • nick67
what do you mean ?
anonymous
  • anonymous
cube = value*value*value; give some value
nick67
  • nick67
value is entered with "cin >> value" from the user
anonymous
  • anonymous
return 0; wat is this
nick67
  • nick67
At the end of a function (in this case the "main" function) you use a return to exit the function; in this case the value is returned to the program caller, i.e. the O.S. Usually a program without errors returns 0
anonymous
  • anonymous
@nick67 do u have c++ V 3.5
anonymous
  • anonymous
or any version of c++
anonymous
  • anonymous
anonymous
  • anonymous
Can u send me that or plzz provide a link to download it ..)))
nick67
  • nick67
I use Eclipse with C++ on Linux
anonymous
  • anonymous
u have LINUX.................oh....no i am on WiNDOWS 7
nick67
  • nick67
try this: http://www.bloodshed.net/devcpp.html it's a bit old but works
anonymous
  • anonymous
thxxx
nick67
  • nick67
for students I strongly suggest to switch to GCC compiler as soon as possible
anonymous
  • anonymous
is this same as Borland C++
anonymous
  • anonymous
nick67
  • nick67
I don't know, because I don't use Borland anymore, but give a chance to the GNU/Linux world :-)
nick67
  • nick67
and as IDE take into consideration Eclipse framework; it's very flexible and let you to do many things http://www.eclipse.org

Looking for something else?

Not the answer you are looking for? Search for more explanations.