Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ACTIVITY 4 . 5 . 1 : For loops. 5 2 8 0 4 0 . 3 4 8 9 5 2 8 . qx

ACTIVITY
4.5.1: For loops.
528040.3489528.qx3zqy 7
Jump to level 1
Write a for loop that prints firstNumber ...-10.
Ex: If the input is:
-3
the output is:
-3,-2,-1,0
import java.util.Scanner;
public class ForLoops'
public static void main (String [] args){
int firstNumber;
int i;
Scanner input = new Scanner(
System.in);
firstNumber = input. nextInt () ;
for Your code goes here *??{
System.out.print(i +"");
}
}
}
1
2
3
4
5
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 10g Database Administrator Implementation And Administration

Authors: Gavin Powell, Carol McCullough Dieter

2nd Edition

1418836656, 9781418836658

More Books

Students also viewed these Databases questions

Question

Did you cite the sources of the statistics?

Answered: 1 week ago

Question

Understand the roles of signs, symbols, and artifacts.

Answered: 1 week ago

Question

Know the three main dimensions of the service environment.

Answered: 1 week ago