J'ai modifié mon programme :
with ada.text_io, ada.integer_text_io;
A,B,C : boolean;
begin
ada.text_io.put("A"); ada.text_io.put("B"); ada.text_io.put("C");
ada.text_io.put("A and (B or C");
ada.text_io.new_line;
for A loop
for B loop
for C loop
if A then ada.text_io.put("1"); else ada.text_io.put("0"); end if;
if B then ada.text_io.put("1"); else ada.text_io.put("0"); end if;
if C then ada.text_io.put("1"); else ada.text_io.put("0"); end if;
if A and (B or C) then ada.text_io.put("1"); else ada.text_io.put("0");
end if;
ada.text_io.new_line;
end;
end;
end;
end;
Qu'en pensez vous?