Computer Science, asked by kavaysharma2007, 10 months ago

This is a C program
The problem is that 'gain_or_loss' variable is not taking any value and if i term it as char
it doesn't ask for input.
Please help. open the attachments
brainliest will be marked

Attachments:

Answers

Answered by srajfaroquee
1

Answer:

see line number 22

  gain_or_loss == gain_or_loss1;

** Remove '=' sign.

rewrite the code to

   gain_or_loss = gain_or_loss1;

=  means intialization ; a = 5 ; store 5 to variable a ;

== means check equality ; a == 5 ; Is the value of a and 5 are equal?

* I think it will solve your above mentioned problem.

If you have doubt then let me know and I will try to clarify your doubts.

Please follow me and mark this ans as Branliest answer.Thank you!

Similar questions