a labour work in a factory if he works 40 hours he will pay 1000 for one hour, if he works more than one hour he will pay 1500 for above hours. How we do it without using if else condition in C++.