Answer:
#include <stdio.h>
int main()
{
int userNum1;
int userNum2;
userNum1 = -1;
userNum2 = 7;
if (userNum1 < 0)
printf("userNum1 is negative. \n");
if(userNum2 > 9)
userNum2 = 0;
else
printf("userNum2 is less than or equal to 9.\n");
return 0;
}
Explanation:
Initialize userNum1 and userNum2.
If userNum1 is less than 0, print 'userNum1 is negative" and end with newline.
if userNum2 is greater than 9, assign 0 to userNum2.
Otherwise, print "userNum2 is less than or equal to 9 and end with newline.
Int whatever = scnr.nextInt();
Although usually when a class has a next* member function, it usually needs to check that there IS a next, that you haven't reached the end. Without knowing the class that scnr was instantiated from, I can't guess.
Someone downloads a pirated song or video a copyrighted image is used without permission and a person downloads and uses pirated software.
Answer:
umm the first one I think..? lol