Computer Science, asked by leatanui98, 1 year ago

write a program to display the cube of the first numbers(1-10)

Answers

Answered by sexygrl53
1

#include<stdio.h>

#include<conio.h>

void main ()

{

int i, j=1;

clrscr ();

printf("\n Enter the Number from 1 to 10:-");

printf("\nNumber \tcube");

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

{

printf("\n%d\t",i);

j=i*i*i;

printf("%d\n\t", j);

}

getch();

}


sexygrl53: mark as brainliest
Similar questions