Math, asked by yash6342, 6 months ago

write a program to print cube of a given number​

Answers

Answered by ɪᴛᴢᴛʀᴀɢɪᴄɢɪʀʟ
3

\huge \purple{\boxed{\mathfrak{answer}}}

➡ 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 Anonymous
22

hlo

❤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