Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int joesApples = 3;
- int bobsApples = 4;
- String busDriverAccept = "Welcome Aboard!";
- String busDriverDeny = "Get Walking, bud.";
- void setup() {
- // put your setup code here, to run once:
- Serial.begin(9600);
- int sallysApples = bobsApples + joesApples;
- Serial.println(sallysApples);
- double sallysMoney = sallysApples * 1.20;
- Serial.println(sallysMoney);
- if(sallysMoney > 9.97) {
- Serial.println(busDriverAccept); //sally affords the bus
- }
- else {
- Serial.println(busDriverDeny); //sally can't afford the bus and walks home
- }
- }
- void loop() {
- }
Add Comment
Please, Sign In to add comment