Hi Friends ! You are on HR Developers website. Here you can find the codes of different languages like c ,c++ , java, pyton and many other languages.
#include<iostream>
using namespace std;
int main()
{
int i,n;
cout<<"please enter the number:";
cin>>n;
for(i=1; i<=n; i++)
cout<<"the number is:"<<i<<endl;
cout<<"the cube is:"<<i*i*i<<endl;
}
No comments:
Post a Comment