Wednesday, 5 October 2016

Program to find cube of first 10 natural numbers .

#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
for(int x=1;x<=10;x++)
{
cout<<x*x*x;
}
getch();
}

No comments:

Post a Comment

Basic Implementation of Array as a Pointer

#include<iostream.h> #include<conio.h> void main() { clrscr();   int arr[5];   cout<<"Enter 5 nos. ";   f...