How to find largest number without any operator | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

How to find largest number without any operator

It means without use any conditional operator we can find largest number among two number

30th Nov 2019, 8:20 AM
Aakash Bilwal
6 Respostas
30th Nov 2019, 8:42 AM
Arsenic
Arsenic - avatar
+ 1
Simple, just subtract them if a<b then a-b will be positive and if a>b then a-b will be negative.šŸ™‚šŸ™ƒ
30th Nov 2019, 8:27 AM
Arsenic
Arsenic - avatar
+ 1
Here you use relational operator no any operator are use then solve this problem
30th Nov 2019, 8:29 AM
Aakash Bilwal
+ 1
Only arithmetic operator are allowed to use
30th Nov 2019, 8:30 AM
Aakash Bilwal
+ 1
Aakash Bilwal I have just used subtraction operator. Relational operators are used just for explaination purposes
30th Nov 2019, 8:36 AM
Arsenic
Arsenic - avatar
0
How do you find largest number without any operator running inside your mind? Apply your answers logic to computer.
1st Dec 2019, 5:37 PM
onekpsc