Scratch Maths: Even, Odd and Prime Numbers
HTML-код
- Опубликовано: 5 дек 2015
- Go to Robotix.com.au to download schematics, programs and handouts for FREE!
~-~~-~~~-~~-~
Latest and Best Arduino Playlist in Collaboratio with DFRobot:
• Arduino Zero to Hero
~-~~-~~~-~~-~
You need and extra if else statement in which you state that if the 'answer' is not 2 do "what you have in the video", else " prime". In this way you can make an exception for the prime number 2
Bingo, you are spot on!
How can I club both odd and even and prime number in a single program
for 2 it goes wrong.....contact me for details
Zoom Zoom.