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
20 Respuestas
+ 4
https://code.sololearn.com/cF1yDKFkf3L0/?ref=app
+ 5
@Joseph I program in Python to learn it more, generally, I too use C++
+ 4
@Joseph Mine is more shorter now
+ 3
here's mine (also I made it in 2 lines cuz I was bored)
https://code.sololearn.com/ctVXQVnjq7Y2/?ref=app
+ 3
@Joseph Now it is without any function
+ 2
Yuo it is ez
+ 2
Looks like you like to code with Python. By the way, nice code👍. @Kartikey Sahu
+ 2
Updated my code now it is a lierally one liner
+ 2
https://code.sololearn.com/WUsx18M7jubE/?ref=app
This is my attempt. I tried to put it all on one line 😂
+ 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
+ 1
I am sure that it is easy 😂😂😂 @ReimarPB
+ 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)
+ 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
+ 1
Woow, really amazing👍power of pyhton💪 @Vengat
+ 1
For now, the shortest program is $Vengat's program.
+ 1
But I said that "without using arrays and sort functions or functions that will make things for our purpose" @Kartikey
0
By the way $Vengat, where did you learn expert programming? I am wondering. And how old are you?
0
😂😂👍 @$Vengat