0

Can someone please help me on nested if

question : 10 marks is given to students attends 10 sessions. if students attends between 9-5 sessions 5 mark is given. if below 5 sessions 0 mark given. can someone write it on c++????

6th Jul 2017, 12:55 PM
Mohammad Hameed Yousufi
Mohammad Hameed Yousufi - avatar
2 Antworten
+ 6
if (session >= 5) { marks = 5; if (session >= 10) { marks = 10; } }
6th Jul 2017, 12:58 PM
Hatsy Rei
Hatsy Rei - avatar
0
thank you very much
6th Jul 2017, 2:28 PM
Mohammad Hameed Yousufi
Mohammad Hameed Yousufi - avatar