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
Get step-by-step solutions from verified subject matter experts
