0

Need your help! 🙏 (C++)

Hey guys! I’m new to programming and have to create a program that can count houses and the number of their floors. It’s like when you go along the street and the numbers are 1, 3, 5, 7, 11... and house 1 for example has 2 floors and so on. You have to enter the house number and the number of floors. If the house number is 0, the program understands that you’ve crossed the street and will continue with 12, 10, 8, 6, 4, 2. At the end it should say which house is the smallest / biggest. Thank you

6th Jan 2019, 12:32 PM
Сергей Иванов
Сергей Иванов - avatar
3 Réponses
+ 1
The idea is that you could say something like "I did this and I don't know what I could do here" , instead of saying all the exercise :) Someone helped you? That's nice, you could post the answer if you want for your own "question", maybe someone else want to learn too. Have a good one!
6th Jan 2019, 2:05 PM
derXred
derXred - avatar
+ 1
Homework...nope, I hope sololearn won't become a place to solve homeworks... What you did until now? :) Nobody gonna do it 100% for you, so try to make something and with your work as base someone will guide you, but you have to do something!!
6th Jan 2019, 1:48 PM
derXred
derXred - avatar
0
Thank you! My friend helped me out and it wasn‘t too difficult at all. I just need to practice more... ;)
6th Jan 2019, 1:58 PM
Сергей Иванов
Сергей Иванов - avatar