What will be the value of n if int n=m+m/n; when m=5,n=2;
A)7
B)7.5
C)Error
Share
What will be the value of n if int n=m+m/n; when m=5,n=2;
A)7
B)7.5
C)Error
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
The output will be 7.5
Explanation:
It first evaluates m / n which is 2.5 & then adds 5 to 2.5 which is 7.5
[tex]\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest![/tex]