Advertisement
Infiniti_Inter

b1

Mar 25th, 2016
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. -----------------------------—
  2. Решение задачи b1
  3. -----------------------------
  4. простая задача на оператор if
  5. if (условие, "(a<29)and(a<=0)") then (действие(x:=2))
  6. ----------------------------------
  7. код:
  8. var a,b,c: longint;
  9. begin
  10. readln(a);
  11. if (a>=0)and(a<=28)then writeln(2);
  12. if (a>=29)and(a<=52)then writeln(3);
  13. if(a>=53)and(a<=77)then writeln(4);
  14. if a>77 then writeln(5);
  15. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement