Answer:
cout << "Num: " << songNum << endl;
cout << songNum << endl;
cout << songNum << " songs" << endl;
Explanation:
Since you did not provide the whole code and each statement has an error, it seems the name of the variable is songNum. Depending on these, you can see the corrections below:
cout << "Num: " << <u>songnum</u> << endl; → cout << "Num: " << songNum << endl;
The name of the variable must be written correctly.
- - -
cout << <u>int</u> songNum << endl; → cout << songNum << endl;
Declaration of the variable must be done before printing it.
- - -
cout << <u>songNum " songs" </u><< endl; → cout << songNum << "songs" << endl;
There must be "<<" signs between each part while printing.
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;
}
}
The most commonly accepted amount of colors on one slide is 4
Answer:
They are changing schedules without proper notice, cutting workers without proper notice and falsely advertising.
Explanation:
I don't think that is a query...