Hello! This is Kenneth J Han!
In this post, we are going to look at if ... else statement.
004. IF ELSE Statement
Problem
Check whether the variable num1 is multiple of 3 or multiple of 7.
Pseudocode
num1 ← 7
IF num1 % 3 == 0
PRINT "Multiple of 3"
ELSE IF num % 7 == 0
PRINT "Multiple of 7"
ELSE
PRINT "None of them"
IF num1 % 3 == 0
PRINT "Multiple of 3"
ELSE IF num % 7 == 0
PRINT "Multiple of 7"
ELSE
PRINT "None of them"
Answer
Multiple of 7
Your source code is on ready to serve!
Python source code answer on Github
Java source code answer on Github
See you on next post!


Sometimes the most profound discoveries are found not in the destination, but in the quiet spaces between the steps of the journey. ✨ nexus market link
ReplyDelete