Try to get this program right!! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Try to get this program right!!

Write a program that recieves a number as an input from the user. If number is divisible by 3, then display "number is divisible by 3" Else If number is divisible by 4, then display "number is divisble by 4" Else If number is divisible by both 3 and 4, then display "number is divisible by both 3 and 4" Let's see who gets it right first.

8th Oct 2017, 9:27 AM
Alvin Joseph
Alvin Joseph - avatar
10 Answers
+ 5
https://code.sololearn.com/chQ6MHzNpIEl/?ref=app
8th Oct 2017, 9:46 AM
Meharban Singh
Meharban Singh - avatar
+ 4
😐 100% of the people who'll upvote this comment will like it. 90% of the people who downvote this comment will dislike it. 10% of the people who downvote this comment did it on accident. There's no proof right? Please formulate your heading a bit better 🙈 And add recourses to your facts 😹 (Sorry for salty comment)
8th Oct 2017, 9:54 AM
Limitless
Limitless - avatar
+ 3
😁 there are many things interviewees get wrong. But do share where you saw it 😋
8th Oct 2017, 10:20 AM
Limitless
Limitless - avatar
+ 2
If someone can't get "this program right", then he is an absolute begginer, not programmer...
8th Oct 2017, 9:56 AM
Maksym Zieliński
Maksym Zieliński - avatar
+ 1
Good job Rick
8th Oct 2017, 9:41 AM
Alvin Joseph
Alvin Joseph - avatar
+ 1
Noted Limitless. Just wanted to see people try it out, that's all.
8th Oct 2017, 9:56 AM
Alvin Joseph
Alvin Joseph - avatar
0
Good job Meharban Singh
8th Oct 2017, 9:48 AM
Alvin Joseph
Alvin Joseph - avatar
0
I understand. I just read somewhere that many interviewees got this wrong.
8th Oct 2017, 9:59 AM
Alvin Joseph
Alvin Joseph - avatar
8th Oct 2017, 10:07 AM
Adarsh Srivastava
Adarsh Srivastava - avatar