WAP to generate the given series of numbers:
a. 4,7,10,13,16,19
b. 8,7,6,5,4,3,2,1
c. 1,4,9,16,25,36,49,64,81,100
(QBASIC)
Answers
Answered by
0
for loop to generate “1,4,9,16,25,36,49,64,81,100”
class series
{
public static void main(String[]args)
{
int i,j;
for(i=1; i<=10; i++) {
j=i*i;
System.out.println(j);
}
}
Explanation:
i hope this is helpful
Please mark me as BRAINLIEST
Similar questions