Department of Mathematics and Computer Science

www.univ-soukahras.dz/en/dept/mi

Module: Algorithmique et structure de données 1

  1. Information
  2. Questions

corps de menu

0 votes

Ecrire un corps de est un menu semble.

exemple:

le menu est:

---------------------------

1---Exercice 01

2---Exercice 02

3---Exercice 03

---------------------------

ect...

Asked on 15:27, Monday 4 Dec 2017 By Mohamed Benabes (17 points)
In Algorithmique et structure de données 1


answers (1)




Answer (1)

0 votes

var c:char;

begin

repeat 

writeln('le menu est: ');

writeln('1) exercice 1 ');

writeln('2) exercice 2 ');

writeln('3) exercice 3 ');

writeln(' 4) exit');

writeln('choisir un exercice  ');read(c);

case c of 

1:appel de la procedure de l'exercice1;

2:appel de la procedure de l'exercice2;

3:appel de la procedure de l'exercice3;

end;

until c='4';

end.

Answered on 17:24, Monday 4 Dec 2017 by محمد الناصر ايت اوبي (104 points)
In Algorithmique et structure de données 1



Do you have an answer ?