LOVEGUN

War Map (Bac science Salma)

Nov 5th, 2020 (edited)
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.50 KB | None | 0 0
  1. Program mois;
  2. Uses Wincrt;
  3. Var
  4.   n,a: Integer;
  5. Begin
  6.   Writeln ('Saisir votre anneé');
  7.   Readln (a);
  8.   Repeat
  9.     Write ('Saisir le numéro du mois: ');
  10.     Readln (n);
  11.   Until n In [1..12];
  12.   If n In [1,3,5,7,8,10,12] Then
  13.     Writeln ('Le mois ',n,' contient 31 jours');
  14.   If n In [4,6,9,11] Then
  15.     Writeln ('Le mois ',n,' contient 30 jours');
  16.   If n=2 Then
  17.     If a Mod 4 = 0 Then
  18.       Writeln ('Le mois ',n,' contient 29 jours')
  19.   Else Writeln ('Le mois ',n,' contient 28 jours');
  20. End.
  21.  
Advertisement
Add Comment
Please, Sign In to add comment