Advertisement
Matvey_Kozvonin

dz 123

Jan 21st, 2024
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. var x,y,n,k:integer;
  2. begin
  3. writeln('Введите N>9');
  4. readln(n);
  5. k:=n div 7;
  6. for y:=0 to k do
  7. if (N-7*y) mod 3=0 then
  8. begin
  9. x:=(N-7*y) div 3;
  10. writeln('x=',x,' y=',y);
  11. end;
  12. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement