/*Write a program in C to display the cube of the number upto given an integer.*/
#include <stdio.h>
int main() {
int i,ctr;
printf("Input number of terms : ");
scanf("%d", &ctr);
for(i=1;i<=ctr;i++)
{
printf("\nNumber is : %d and cube of %d is :%d ",i,i, (i*i*i)); }
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: