Gallery
Debug 4.1. Missing Number
Share
Explore
Debug 4.1. Missing Number

icon picker
The Task

Activity: Debug 4.1 Missing number 🐞

Start Here

A bug report has been has been submitted on this program. The program should be asking for two numbers and adding them together but it is displaying the wrong results. Can you help fix it?
Run the program to identify errors.
Refer to the code clips below to help you fix the errors.
Right click on your code and add a comment explaining what was wrong and how you fixed it.

design

1 get numberOne from keyboard
2 get numberTwo from keyboard
3 set additionAnswer to numberOne add numberTwo
4 display message with numberOne, numberTwo and AdditionAnswer
sample output
Enter the first number: 45
Enter the second number: 56

45 + 56 = 101
Good luck! 🍀
Share
 
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.