C++ program doubt

write a program to display the following equations using loop
x+y=5
x-y=10

@yutikakhanna, do you want to find the value of x and y satisfying above relations or what ?
Can you please explain your doubt a bit

Find the values of x and y satisfying both the equations using loop

@yutikakhanna, the problem with this equation is that , you can loop through x in some range and compute corresponding y value according to equation 1 then put the value of x and y in equation 2 and check if it satisfies or not , but the problem is that we are only taking values of x as integers as you can only iterate through integer values in any loop and this equation has solution as x=7.5 and y=2.5 which is a decimal number, so you need to multiply the rhs of both equation by 2 and divide the result by 2 ,
refer below code :-

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.