Write a program to print the series
s=2+5+8 .... upto 10 terms
Answers
Answered by
8
Answer:
2,3,5,8,13…………10th term ...
DECLARE SUB SERIES () CLS CALL SERIES END SUB SERIES A = 2 B = 3 FOR I = 1 TO 10 PRINT A; C = A + B A = B B = C NEXT I END ...
Answered by
4
Answer:
import java.io.*;
.*;class Disarium
.*;class Disarium{
.*;class Disarium{public static void main()
.*;class Disarium{public static void main(){
int s=0;
for(int I=2,I<=29;I=I+3)
s=s+I;
System.out.println(i);
}
}
}
Similar questions