(Solved) : 3 Output Following Program Include Int Main Int 2 Q44118698 . . .
I’m really confused could someone help me with this and writeout the steps?
3. What is the output of the following program? #include <iostream.h> int main() { int i; for (i=2; i<10; i++) { if (i%6==0 && i<8) cout<<‘0’; else if (i>7 && i%2==0) cout<<‘S’; else if (i%4==1 && i<9) cout<<‘D’; else if (i%7==0) cout<<‘G’; else if (i==6) cout<<‘A’; else if (i%3==0 && i>3) cout<<“!.”; else if (i>5) cout<<“.”; cout<<endl; return 0; Show transcribed image text 3. What is the output of the following program? #include int main() { int i; for (i=2; i
Expert Answer
Answer to 3. What is the output of the following program? #include int main() { int i; for (i=2; i…
OR