A

@ArmandG

welcome test session

C
1 month ago
#include <stdio.h> #define NB_JOUEUR 4 #include <string.h> #include <stdlib.h> #include <time.h> int input[5]= {0,0,0,0,0};

tri par insertion

C
2 months ago
#include <stdio.h> const int N=10; int Liste[10]={5,3,2,8,12,1,32,-4,7,4}; void inversion(int n) { int temp=Liste[n]; Liste[n] = Liste[n+1]; Liste[n+1] = temp;

tri par selection

C
2 months ago
#include <stdio.h> const int N=10; int Liste[10]={5,3,2,8,12,1,32,-4,7,4}; void inversion(int n1, int n2) { if (n1==n2) return; int temp=Liste[n1];

tri a bulle

C
2 months ago
#include <stdio.h> int Liste[10]={5,3,2,8,12,1,32,-4,7}; void inversion(int n) { int temp=Liste[n]; Liste[n] = Liste[n+1]; Liste[n+1] = temp; }

4 exo 5 v2

C
2 months ago
#include <stdio.h> #include <string.h> int test3(char *A, char *B, char *C); int test2(char *A, char *B, int a, int b, int i); int main() { char plyr1[50]; char plyr2[50]; char plyr3[50];

4 exo 5

C
3 months ago
#include <stdio.h> #include <string.h> int test3(char[50] plyr1, char[50] plyr2, char[50] plyr3); int test2(char[50] plyr1, char[50] plyr2, int i, int lmini); int min(int n1, int n2); int main() { char plyr1[50]; char plyr2[50];

exo 2

C
3 months ago
#include <stdio.h> #include <string.h> int main() { char txt[50]="bjr, je suis moi lol"; printf("%ld",strlen(txt)); }

4 exo 1

C
3 months ago
#include <stdio.h> #include <stdlib.h> #include <string.h> int main() { char phrase[19]="bonjour je suis moi"; //gets(phrase); puts(phrase); void inverse() {

3 exo3

C
3 months ago
#include <stdio.h> void moins(int tab[],int t,int i); int est_ordonne(int tab[],int t); int ajout(int tab[],int t,int nb); void fusion(int tab[],int tab2[],int t,int t2,int tabf[]); int main() { int tab[10]={0,1,2,3,4,5,6,7,8,9}; int t=10,

3 exo2

C
3 months ago
#include <stdio.h> int saisir_tab(int ligne,int colone,int tab[][colone]); int main() { int ligne,colone,i,j,nb; printf("nombre de ligne et colone"); scanf("%d %d",&ligne,&colone); int tab[ligne][colone]; for (i=0;i<colone;i++)

3 exo1

C
3 months ago
#include <stdio.h> void inversesL(int L[],int t); void inverseaL(int L[],int t); int main() { int tab[5]={2,1,6,4,9}; int i; inverseaL(tab,5); for (i=0;i<5;i++)

2 exo6

C
4 months ago
#include <stdio.h> unsigned long long fact(int n) { unsigned long long result=1; while (n-->1) { result*=(n+1); } return (result); }

2 exo4

C
4 months ago
#include <stdio.h> void echange(int* a,int* b) { int temp=*a; *a=*b;*b=temp; printf("%d,%d\n",*a,*b); } int main() { int a,b;

2 exo3

C
4 months ago
#include <stdio.h> void echange (int* x, int* y ); void ajouteUn (int x); void ajouteDeux (int* x); void ajouteTrois (int x, int* y); int main() { printf("\t\ta\tb\tc\td\n");

2 exo2

C
4 months ago
#include <stdio.h> #define AUJOURDHUI_J 04 #define AUJOURDHUI_M 02 #define AUJOURDHUI_A 2026 int age(int j,int m,int a) { if ((m<AUJOURDHUI_M)||(m==AUJOURDHUI_M && j<AUJOURDHUI_J)) return AUJOURDHUI_A-a; else return AUJOURDH

2 exo1

C
4 months ago
#include <stdio.h> int main() { int P=1; int poly(int x) { return (x*x)+x-1; } void polynome(void){ int x; scanf("%d\n",&x);

exo6

C
4 months ago
#include <stdio.h> int main() { int n; float total=0; printf("combien de photocopies voulez-vous ?\n"); scanf("%d\n",&n); if (n>10) { total+=1; if (n>30) {

exo5

C
4 months ago
#include <stdio.h> #include <stdlib.h> int main() { int v=1; while (v) { int n=-1; int i=0; int k = rand()%10; while (n!=k) {

exo4

C
4 months ago
#include <stdio.h> int main() { int n=0; float note=0; float m=0; while (note!=-1) { scanf("%f\n",&note); n++; m+=note;

exo 3

C
4 months ago
#include <stdio.h> int main() { int n; int U; int Un; int h=-1; int b; while (b!=0) { if (h++>0) {