Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

if(sum> 4); sum = sum + 2;

0 votes
asked Mar 31, 2019 by anonymous

2 Answers

0 votes
answered Mar 31, 2019 by anonymous
Either way sum will be increased by 2. Because there is a semicolon at the end of the parentheses.
0 votes
answered Apr 1, 2019 by anonymous
yes your answer will increase by 2
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and receive answers from other members of the community.
...