Open study

is now brainly

With Brainly you can:

  • Get homework help from millions of students and moderators
  • Learn how to solve problems with step-by-step explanations
  • Share your knowledge and earn points by helping other students
  • Learn anywhere, anytime with the Brainly app!

A community for students.

write a c++ prgm to find the cube of given number

Computer Science
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.

Join Brainly to access

this expert answer

SIGN UP FOR FREE
#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 "<
oh...i want this in simple language
@A.Avinash_Goutham Please provide the link also .. -_-

Not the answer you are looking for?

Search for more explanations.

Ask your own question

Other answers:

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

Not the answer you are looking for?

Search for more explanations.

Ask your own question