write a program in small basic to print the series 1, 8, 27,64..up to
10 terms
Answers
Answered by
0
main(){
int upto;
printf(“Enter series upto:”);
scanf(“%d”,&upto);
int i;
for(i=0; i printf(“%d ,”, (i+1)^3);
getch();
}
This program is written in C.
int upto;
printf(“Enter series upto:”);
scanf(“%d”,&upto);
int i;
for(i=0; i printf(“%d ,”, (i+1)^3);
getch();
}
This program is written in C.
Answered by
0
Answer:
Explanation:
class abc
{
public static void main(String[] args)
{
int sum=0;
for(int i=1;i<=10;i++){
sum=sum+i*i*i;
System. out.println(sum);
}
}
}
Similar questions
Chemistry,
6 months ago
Math,
6 months ago
Computer Science,
6 months ago
Science,
1 year ago
Social Sciences,
1 year ago
English,
1 year ago
Math,
1 year ago