write a program to print cube of a given number
Answers
Answered by
3
➡ Pictorial Presentation:
➡ Sample Solution:
➡ C Code: #include <stdio.h> void main() { int i,ctr; printf("Input number of terms : "); scanf("%d", &ctr); for(i=1;i<=ctr;i++) { printf("Number is : %d and cube of the %d is :%d \n",i,i, (i*i*i)); } }
Hope it helps..
⚡
Answered by
22
❤Pictorial Presentation:
➡✨ Sample Solution:
➡ ✨C Code: #include <stdio.h> void main() { int i,ctr; printf("Input number of terms : "); scanf("%d", &ctr); for(i=1;i<=ctr;i++) { printf("Number is : %d and cube of the %d is :%d \n",i,i, (i*i*i)); } }
22❣️- inbox
Similar questions