write a program in java to print the series. 24,99,224,399
Answers
Answered by
1
Answer:
include<stdio.h>
#include<conio.h>
void main()
{
int i,n,p=24,q=75;
printf("Enter the value of n:: ");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
printf("%d\t",p);
p+=q;
q+=50;
}
getch();
Similar questions