Answer:
while (Num>=0) {
System.out.println("enter a another number");
Num = in.nextInt();
}
Explanation:
The complete java code prompting a user to enter a number until a negative number is entered is given below:
import java.util.Scanner;
public class num6 {
public static void main (String [] args) {
Scanner in = new Scanner(System.in);
System.out.println("enter a number");
int Num = in.nextInt();
while (Num>=0) {
System.out.println("enter a another number");
Num = in.nextInt();
}
System.out.println("Done.");
return;
}
}
Cyberbullying is bullying that takes place over digital devices like cell phones, ... posting, or sharing negative, harmful, false, or mean content about someone else. It can include sharing personal or private information about someone else ... as well as any negative, mean, or hurtful content
3
thank me later :))))))))
I don't really know the perfect answer to this but I would say because of todays technonlogy
Answer:
The program in Python is as follows:
num1 = int(input())
num2 = int(input())
if num2 < num1:
print("Second integer can't be less than the first.")
else:
for i in range(num1,num2+1,5):
print(i,end=" ")
Explanation:
This gets the first integer from the user
num1 = int(input())
This gets the second integer from the user
num2 = int(input())
If the second is less than the first, the following prompt is printed
<em>if num2 < num1:</em>
<em> print("Second integer can't be less than the first.")</em>
If otherwise, the number between the intervals is printed with an increment of 5
<em>else:</em>
<em> for i in range(num1,num2+1,5):</em>
<em> print(i,end=" ")</em>
<em />