اكتب برنامج C لعرض مكعب الأعداد الطبيعية من 1 حتى عددًا صحيحًا معطى
- برمجة
- برمجة سي c
- 2021-05-04
- Wassim
الأجوبة
/*Write a program in C to display the cube of the number upto given an integer*/
#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));
}
}أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال