0

Hi guys I'm very new to this and I really need help

What is the final output as given by Thonny is the shell? Copy and past help* begin hours←60 if(hours>40) and (hours<48) then overtime←1.5*10*hours else overtime←2*10* hours end if output overtime

14th Jul 2021, 11:47 AM
Grace
3 Réponses
0
Looks like Algol. After setting hours to 60, the logic falls through to calculate overtime as 2*10*hours. The last line prints overtime, which is 1200.
14th Jul 2021, 11:15 PM
Brian
Brian - avatar
+ 5
Grace , are you talking about python language, or what sort of code is your sample?
14th Jul 2021, 12:46 PM
Lothar
Lothar - avatar
0
What language is this ?
14th Jul 2021, 12:47 PM
Abhay
Abhay - avatar