GUVI
Back

WINNING ISN'T EVERYTHING, BUT WANTING TO WIN IS || #WinACourseWednesday

Created 6 mons ago
83 Views
3 Comments
butterflight_7
@butterflight_7
butterflight_7
@butterflight_7Profile is locked. Login

Ram is given a question by his friends. But he is having some errors while solving it. 

A decimal number n is given. He is asked to convert it into a binary equivalent.

Help him to solve the problem.

Sample Input 1

4

Sample Output 1

0100

Sample Input 2

15

Sample Output 2

1111

Sample Input 3

17

Sample Output 3

10001

Kindly comment the code for the above problem statement and
GUVIan who comments first with the correct code would win a Premium course of their choice.

Results will be declared by next week!!

Hurry up!!

Comments (3)
Please login to comment.
 
Powered by habitate.io Habitate