Advertisement
katarinaknobel

dug1

Sep 22nd, 2017
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ada 0.32 KB | None | 0 0
  1. with Ada.Text_IO; use Ada.Text_IO;
  2. with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
  3.  
  4. procedure Dug1 is
  5. Faktor1: Integer;
  6. Faktor2: Integer;
  7.  
  8. begin
  9. Get(Faktor1);
  10. Get(Faktor2);
  11.  
  12. for I in 1..Faktor1 loop
  13. Put (I, Width=>4);
  14.  
  15. for A in 2..Faktor2 loop
  16. Put(I*A, Width=>4);
  17.  
  18. end loop;
  19. New_Line;
  20. end loop;
  21.  
  22. end Dug1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement