Ajout de prise de note tp 5
This commit is contained in:
21
PROJETPERSO/pjperso.c
Normal file
21
PROJETPERSO/pjperso.c
Normal file
@@ -0,0 +1,21 @@
|
||||
#include<stdlib.h>
|
||||
#include<stdio.h>
|
||||
|
||||
int main(void){
|
||||
|
||||
char n1,n2,n3,n4,n5,cal;
|
||||
printf("Ecrivez votre calcul à deux décimal\n");
|
||||
n1 = getchar();
|
||||
n2 = getchar();
|
||||
n3 = getchar();
|
||||
n4 = getchar();
|
||||
n5 = getchar();
|
||||
cal = (n1,n2) + (n4,n5);
|
||||
|
||||
printf("Votre calcul est : %c%c%c%c%c\n", n1,n2,n3,n4,n5);
|
||||
|
||||
printf("Résultat : %d\n", cal);
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
Reference in New Issue
Block a user