Purpose of this blog is to make programming easy , weak programmers may get help from my blog i tried my best to post some of my codes in form of easiest approach, I think this blog is perfect c++ guide in form of online blog. please consult my all codes and suggest all of it with your class mates. Share experiences & knowledge with your juniors. Make yourself habitual to write different programs for 2 hours a day daily.
Monday, 25 March 2013
C++ program tell you the cube of the number entered by the user
#include<iostream.h> int main() {int cube(int); int a; cout<<"Enter a number to find : "; cin>>a; cout<<"Cube of a number is as under : "<<cube(a); return 0;}
int cube(int m) { int mx=m; mx=mx*mx*mx; return mx; }