Lycée Mahmoud EL Mesaadi
Vous souhaitez réagir à ce message ? Créez un compte en quelques clics ou connectez-vous pour continuer.
Le Deal du moment :
Pokémon EV06 : où acheter le Bundle Lot ...
Voir le deal

correction dctheo_prob2

2 participants

Aller en bas

correction dctheo_prob2 Empty correction dctheo_prob2

Message par abdellaoui Mer 17 Fév - 15:21

voici la solution**************************************************
*************************************************************
program boum;
uses wincrt;

var
n,max:integer;

procedure saisi_n(var n:integer);
begin
repeat
writeln('n=');
readln(n);
until n in [2..9];
end;
procedure saisi_max(var m:integer);
begin
repeat
writeln('max=');
readln(max);
until max in [10..99];
end;
procedure affiche (var n,max:integer );
var
i:integer;
begin
for i:= 1to max do
begin
if (i div 10 = n) or (i mod 10 =n) or (i mod n =0) then
writeln('boum')
else
writeln(i);
end;
end;

begin

saisi_n(n);
saisi_max(max);
affiche(n,max);

end.
***********************************************

abdellaoui
Prof
Prof

Messages : 22
Date d'inscription : 30/11/2009

Revenir en haut Aller en bas

correction dctheo_prob2 Empty Re: correction dctheo_prob2

Message par Amoura ben Mabrouk Ven 19 Fév - 19:05

thinks trés gentil

Amoura ben Mabrouk
Nouveau Elève
Nouveau Elève

Messages : 7
Date d'inscription : 12/10/2009

Revenir en haut Aller en bas

Revenir en haut

- Sujets similaires

 
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum