Computer Science, asked by jamesmarc7528, 8 months ago

Write a program in C to find all cube numbers from 1 to 1000 (both numbers inclusive). [Hints: 1, 8, 27, 64,... are few cube numbers]

Answers

Answered by shwbd0117
0

int main()

{

   int i,n;

 

   printf("Enter the value of N: ");

   scanf("%d",&n);

 

   printf("No Cube\n",n);

   for(i=1;i<=n;i++)

   {

       printf((i*i*i));

   }

     

   return 0;

}

Similar questions