Question: We were expecting the following output in c programming They're not equal :-| They're not equal :-| They're not equal :-| They're not equal :-|

We were expecting the following output in c programming

They're not equal :-| They're not equal :-| They're not equal :-| They're not equal :-| They're not equal :-| They're equal :-) They're not equal :-| They're not equal :-| They're not equal :-| They're not equal :-| 

But its not working :( Can you fix the program below to get it to work?

int main(){ int a = 10; int b = 5; while(a > 0){ if(a = b){ printf("They're equal :-) "); }else{ printf("They're not equal :-| "); } a-=1; } }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!