premier depot git

This commit is contained in:
Jacques MBOUSSA 2021-10-05 17:21:08 +02:00
parent d17032e8cb
commit 81df25baf0
5 changed files with 64 additions and 0 deletions

20
APL1.1/boucles.c Executable file
View File

@ -0,0 +1,20 @@
#include<stdio.h>
#include<stdlib.h>
int main (void){
int minterme;
int maxterme;
int i;
int entier=i;
printf("tapez maxterme: ");
printf("tapez minterme: ");
scanf("%d", &maxterme);
scanf("%d", &minterme);
for(i=minterme ; i<maxterme ; i=i+1){
printf("%d\n", i);
}
if(i==maxterme){
}
return EXIT_SUCCESS;
}

18
APL1.1/calcul.c Normal file
View File

@ -0,0 +1,18 @@
#include<stdio.h>
int main(void){
int x=3;
if (x=2){
printf("x vaut 2/n");
} else {
printf("x est différent de 2/n");
}
printf("la valeur de x est en fait %d\n", x);
if (x=0 {
printf("x vaut 0\n");
}else{
printf("%s", "x est différent de 0\n");
}
printf("la valeur de x est en fait %d\n", x);
return EXIT_SUCCESS;
}

13
APL1.1/devinette.c Normal file
View File

@ -0,0 +1,13 @@
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main(void){
int i;
int v1;
int v2;
int minterme;
int maxterme;
srand();
for(i=0; i < v2; i
}

7
APL1.1/sapin.c Normal file
View File

@ -0,0 +1,7 @@
/*programme du sapin*/
#include<stdio.h>
#include<stdlih.h>
#define HAUTEUR 6
int main(void)
for(

6
APL1.1/scanf.c Normal file
View File

@ -0,0 +1,6 @@
/*saisie en console scanf*/
#include<stdio.h>
#include<stdlib.h>
int main{