Answer:
to tell the program to take a different action when the If statement answer is false
Explanation:
if x = 0:
print('x equals 0')
else:
print('x equals something else that isnt 0')
Answer:
The code is below. The output is "Eric went to Chipotle to buy 12 different types of Cars"
Explanation:
import java.util.scanner;
public class labprogram {
public static void main (string [ ] args) {
scanner scnr = new scanner (system.in) ;
string firstname;
string genericlocation;
int wholenumber;
string pluralNoun;
firstName = scnr.next();
genericLocation = scnr.next();
wholeNumner = scnr.nextInt();
pluralNoun = scnr.nextLine();
system.output.println(firstname + " went to " + genericlocation + " to buy " + wholenumber + " different types of " + pluralnoun + " . ");
}
}
Answer:
character count
Explanation:
The answer is probably character count.
Answer:
i am still a beginner in this but i hope it helps.
- add scanner object;
- declare string FavColour;
- print msg to ask user for input
- print msg (" your favourite colour is " + FavColour)