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;
}
}
Explanation:
<html>
<title>first term 9/<title>
<head>SUNGHAVA SHIKSHA NIKETANA</head>
<body>
<h1>maths formula</h1>
<h6>a2-b2=(a+b)(A-B)</h6>
<h1>list of exams<\h1>
<h6>1.computer,2.english,3science</h6>
</body>
</html>
Answer:
I would suggest an outdated laptop that can't be updated anymore because it is old and outdated.
Explanation:
If you hack on an old laptop it can't be traced back to you because the servers are shutdown.
Answer:
recognition
Explanation:
<h2><u>Fill in the blanks</u></h2>
When you take a multiple-choice test, you are relying on <u>recognition</u> , a means of retrieving information out of your long-term memory storage system that helps you choose the correct answer.
Answer:
Given
The above lines of code
Required
Rearrange.
The code is re-arrange d as follows;.
#include<iostream>
int main()
{
int userNum;
scanf("%d", &userNum);
if (userNum > 0)
{
printf("Positive.\n");
}
else
{
printf("Non-positive, converting to 1.\n");
userNum = 1;
printf("Final: %d\n", userNum);
}
return 0;
}
When rearranging lines of codes. one has to be mindful of the programming language, the syntax of the language and control structures in the code;
One should take note of the variable declarations and usage
See attachment for .cpp file