List the output of the following 3 programs:
int main() {
int i;
i=10;
if(i>5)
cout << "Free";
else
cout << "Pay";
cout << " ";
if (i==0)
cout << "What?";
else if(i%2==0)
cout << "Yeah";
cout << endl;
return 0;
}
int main() {
int i;
i=1;
while(i<=4)
i++;
cout << i << endl;
i=10;
cout << endl;
while(i>0) {
i--;
cout << i+1 << endl;
}
cout << endl;
i=2;
while(i<=8) {
if(i%2!=0)
cout << i << endl;
else if(i>5)
cout << i << endl;
i++;
}
return 0;
}
int main() {
int i=0,j=0;
for(i=5;i>0;i--) {
j+=i;
if(j==i)
cout << "Equal" << endl;
if (j>10)
cout << "Cookie" << endl;
if (i<3)
cout << "Pudding" << endl;
else
cout << "Food" << endl;
}
return 0;
}