C++ program to display the cube of the number upto given an integer


#include <iostream>
using namespace std;
void main()
{
int i,terms;
cout<<"number of terms:";
cin>>terms;
for(i=1;i<=terms;i++)
{
  cout<<"number is"  <<i  <<  "and cube of "  << i<<  "is"       <<i*i*i<<endl;
}
    system ("pause");
}

C++ program to display the cube of the number upto given an integer C++ program to display the cube of the number upto given an integer Reviewed by Unknown on May 18, 2017 Rating: 5

1 comment:

  1. DataVan Cubee 615 Display in UAE, 10.4-Inches Display in UAE, Second Display in UAE
    https://gccgamers.com/datavan-cubee.html
    DataVan 615 Display in UAE, Safe Shopping Multiple Payment Options Express Delivery GCC Gamers Moneyback Guarantee.
    1633927175098-8

    ReplyDelete

Powered by Blogger.