Help me in solving SYNMCQ10 problem

My issue

Learning course: Learn C++
Problem Link: CodeChef: Practical coding for everyone

@salcode2501 the correct answer is 3 because you are storing a/b in a integer type of variable .
so it will store the integer part of the variable i.e. 3.
if u would have written the sentence double c=a/b; the answer would be 3.33

hope this helps!!