0

Easy Challenge>>Write A Program That Will Compare Two Values and Will Determine The Big One Or Will Determine Are They The Same

You will write a program that will compare two values and will determine the big one and will determine are they the same. But your purpose is that write the program with less code without using arrays and sort functions or functions that will make things for our purpose. https://code.sololearn.com/cOLn3191NlQK/?ref=app

29th Sep 2017, 1:27 PM
Yusuf
Yusuf - avatar
20 Answers
+ 4
https://code.sololearn.com/cF1yDKFkf3L0/?ref=app
29th Sep 2017, 1:49 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
29th Sep 2017, 1:51 PM
Kartikey Sahu
Kartikey Sahu - avatar
+ 5
@Joseph I program in Python to learn it more, generally, I too use C++
29th Sep 2017, 2:20 PM
Kartikey Sahu
Kartikey Sahu - avatar
30th Sep 2017, 7:04 AM
David Ashton
David Ashton - avatar
+ 4
@Joseph Mine is more shorter now
29th Sep 2017, 2:40 PM
Kartikey Sahu
Kartikey Sahu - avatar
+ 3
here's mine (also I made it in 2 lines cuz I was bored) https://code.sololearn.com/ctVXQVnjq7Y2/?ref=app
29th Sep 2017, 2:07 PM
ReimarPB
ReimarPB - avatar
+ 3
@Joseph Now it is without any function
30th Sep 2017, 4:40 PM
Kartikey Sahu
Kartikey Sahu - avatar
+ 2
Yuo it is ez
29th Sep 2017, 1:44 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 2
Looks like you like to code with Python. By the way, nice code👍. @Kartikey Sahu
29th Sep 2017, 2:19 PM
Yusuf
Yusuf - avatar
+ 2
Updated my code now it is a lierally one liner
29th Sep 2017, 2:38 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 2
https://code.sololearn.com/WUsx18M7jubE/?ref=app This is my attempt. I tried to put it all on one line 😂
29th Sep 2017, 7:41 PM
Casey Hampson
Casey Hampson - avatar
+ 1
Actually, the teacher asked this question without my request of course 😂, and I solved with if else statements. And it looks to me a bit long. I want to shorten the code that I wrote. I found a way as I shared. I am wondering that are there any program shorter than my program. That is why I asked. @$Vengat
29th Sep 2017, 1:49 PM
Yusuf
Yusuf - avatar
+ 1
I am sure that it is easy 😂😂😂 @ReimarPB
29th Sep 2017, 2:09 PM
Yusuf
Yusuf - avatar
+ 1
@Joseph Hardrock It is. You just make the code and remove all spaces (except for the #include <iostream>. it wants to be in its own line)
29th Sep 2017, 2:10 PM
ReimarPB
ReimarPB - avatar
+ 1
I don't know have you seen my post about the question. "Actually, the teacher asked this question without my request of course 😂, and I solved with if else statements. And it looks to me a bit long. I want to shorten the code that I wrote. I found a way as I shared. I am wondering that are there any program shorter than my program. That is why I asked. @$Vengat" @ReimarPB
29th Sep 2017, 2:21 PM
Yusuf
Yusuf - avatar
+ 1
Woow, really amazing👍power of pyhton💪 @Vengat
29th Sep 2017, 2:25 PM
Yusuf
Yusuf - avatar
+ 1
For now, the shortest program is $Vengat's program.
29th Sep 2017, 2:36 PM
Yusuf
Yusuf - avatar
+ 1
But I said that "without using arrays and sort functions or functions that will make things for our purpose" @Kartikey
29th Sep 2017, 2:43 PM
Yusuf
Yusuf - avatar
0
By the way $Vengat, where did you learn expert programming? I am wondering. And how old are you?
29th Sep 2017, 2:37 PM
Yusuf
Yusuf - avatar
0
😂😂👍 @$Vengat
29th Sep 2017, 2:40 PM
Yusuf
Yusuf - avatar