Hey, I need to do this task: Ticket has six numbers. ticket is lucky, if the sum of 3 first of it's numbers is equal to sum of its last three numbers. You are given 2 ticket numbers a and b (100000<=a<=b<=999999). Find all the possible lucky numbers in interval[a;b]. BUT I dont receive any output. HELP!
c>a&&c<b;
I'm guessing that this is you trying to sort of say that you wish c was bigger than a, and less than b. That's nice, but it's not how C++ works. If you want c to have a value, you have to set that value yourself.