A voir également:
- Ecrire un algorithme qui permet d'afficher le triangle
- Ce programme est écrit en python. il construit un mot secret dans une variable mais il ne l'affiche pas. modifiez-le pour qu'il affiche le mot secret. exécutez-le. quel est ce mot secret ? ✓ - Forum Python
- Ecrire un algorithme qui permet de resoudre ax²+bx+c=0 - Forum Algorithmes / Méthodes
- Écrire un algorithme qui permet de calculer et afficher la moyenne générale d'un étudiant ✓ - Forum Programmation
- Ecrire un algorithme qui calcule le produit de deux nombres - Forum Programmation
- Afficher un tableau en c - Forum C
24 déc. 2010 à 07:32
Néanmoins pour n=2, ceci marchera :
program chrislains; procedure g(n:integer); var i:integer; begin for i:=1 to n do write('*'); end; procedure f(n:integer); var i:integer; begin if n=0 then writeln('*') else begin f(n-1); g(n); write(' '); g(n); writeln; f(n-1); end; end; BEGIN f(2); END.30 mai 2011 à 16:32
13 nov. 2013 à 22:11
uses wincrt ;
var ch: string ;
procedure affichage (ch1,ch2: string ) ;
begin
if ch1 <> '' then
begin
writeln (ch1,ch2) ;
affichage (copy ( ch1,1,length (ch1) -1 ) , copy (ch2,2,length (ch2) -1)) ;
writeln (ch1,ch2) ;
end ;
end ;
begin
writeln ('saisir ch : '); readln (ch ) ;
writeln ;
affichage (ch,ch) ;
end .