Hello, everyone! I need your help because I do not know how to fix if else statements. | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
- 1

Hello, everyone! I need your help because I do not know how to fix if else statements.

https://code.sololearn.com/cOgHc8xrcOgc/?ref=app I would like to print if else statements. If there is such a phone number in the directory which I looking for than print phone number, name and address. Else if there are more than one numbers which are equal, than print Statement 2, else if there is no such number than print Statement 3.

8th Oct 2022, 2:39 AM
TeaserCode
2 Antworten
+ 2
Unfortunately, I can't understand your code. Some things that can help: 1. Use descriptive names for variables, methods, etc. It's hard to follow the logic when we don't have an idea of what the names mean. 2. Describe your logic. There may be other things, but they depend on what the code should do.
8th Oct 2022, 3:46 AM
Emerson Prado
Emerson Prado - avatar
- 1
Does really nobody know how to write these if statements?
9th Oct 2022, 9:39 AM
TeaserCode