Ajout des fichiers des séances précédentes
This commit is contained in:
14
DEV1.1/TP06/Exo2.c
Normal file
14
DEV1.1/TP06/Exo2.c
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(void) {
|
||||
int x;
|
||||
printf("entrez un nombre entier");
|
||||
x = scanf("%d",&x);
|
||||
|
||||
if (x>0) {
|
||||
printf("%d\n", x*3);
|
||||
}
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
Reference in New Issue
Block a user