print the series
answer this question
Attachments:
Answers
Answered by
0
hey dear sweet friend here is your answer
1, 9, 17, 33, 49, 73, 97.
9–1=8
17–9=8
33–17=16
49–33=16
73–49=24
97–73=24
hope it's help
have a great day
1, 9, 17, 33, 49, 73, 97.
9–1=8
17–9=8
33–17=16
49–33=16
73–49=24
97–73=24
hope it's help
have a great day
Answered by
11
import java.util.Scanner;
public class Demo
{
public static void main(String args[])
{
int a,i;
Scanner scan = new Scanner(System.in);
System.out.println("Please enter any number:");
a = scan.nextInt();
System.out.println("Numbers are : "+a);
for(i = 1; i<=a; i++)
System.out.print(i+",");
}
}
Hope it helps!
Similar questions