Exercice en c++
Résolu/Fermé
scofield.med
Messages postés
10
Date d'inscription
mardi 18 mars 2008
Statut
Membre
Dernière intervention
13 juin 2008
-
9 juin 2008 à 00:38
scofield.med Messages postés 10 Date d'inscription mardi 18 mars 2008 Statut Membre Dernière intervention 13 juin 2008 - 13 juin 2008 à 21:06
scofield.med Messages postés 10 Date d'inscription mardi 18 mars 2008 Statut Membre Dernière intervention 13 juin 2008 - 13 juin 2008 à 21:06
A voir également:
- Exercice en c++
- Fleur d'encre 5eme corrigé exercice ✓ - Forum PDF
- Comment trouver la correction d'un exercice ✓ - Forum Programmation
- Exercice java orienté objet corrigé ✓ - Forum Java
- Exercice d'expression écrite cm2 gratuit - Télécharger - Éducatifs
- Exercice word avec corrigé - Forum Word
3 réponses
Nabla's
Messages postés
18149
Date d'inscription
mercredi 4 juin 2008
Statut
Contributeur
Dernière intervention
28 avril 2014
3 219
9 juin 2008 à 11:18
9 juin 2008 à 11:18
void main
{
int nb;
cout<<"lignes"<<endl;
cin>>nb;
char* text= new char[nb+1];
for (int i=0;i<nb;i++)
{
text[i]=i+1;
text[i+1]='0';
cout<<text<<endl;
}
cout<<endl<<"ton prof va tricard que tu l as pas fait toi meme"<<endl;
}
{
int nb;
cout<<"lignes"<<endl;
cin>>nb;
char* text= new char[nb+1];
for (int i=0;i<nb;i++)
{
text[i]=i+1;
text[i+1]='0';
cout<<text<<endl;
}
cout<<endl<<"ton prof va tricard que tu l as pas fait toi meme"<<endl;
}
jaouaf_mohamed
Messages postés
4
Date d'inscription
jeudi 12 juin 2008
Statut
Membre
Dernière intervention
14 juin 2008
13 juin 2008 à 02:12
13 juin 2008 à 02:12
---------------------------------------------------------
# include <stdio.h>
main ()
{
printf ("Donnez le nombre de ligne = ");
scanf ("%d",&n);
for (t=1;t<=n;t++)
{
for (h=1;h<=t;h++)
{
printf ("%d",h);
}
printf ("\n");
}
getch ();
}
-------------------------------------------------------
# include <stdio.h>
main ()
{
printf ("Donnez le nombre de ligne = ");
scanf ("%d",&n);
for (t=1;t<=n;t++)
{
for (h=1;h<=t;h++)
{
printf ("%d",h);
}
printf ("\n");
}
getch ();
}
-------------------------------------------------------
scofield.med
Messages postés
10
Date d'inscription
mardi 18 mars 2008
Statut
Membre
Dernière intervention
13 juin 2008
13 juin 2008 à 21:06
13 juin 2008 à 21:06
merci bcp c claire thx man
12 juin 2008 à 20:49