Pascal :
program ty(input,output); var n:integer; f:real; begin readln(n); if n<=10 then f:=2.5 else f:=2.5+(n-10)*1.5; writeln(f:0:2); end.
By signing up a 算道OJ universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 算道OJ universal account