21 septembre

This commit is contained in:
2022-09-21 17:54:28 +02:00
parent a55a2bf603
commit 1e063977ab
10 changed files with 116 additions and 20 deletions

View File

@@ -1,15 +1,14 @@
#include <stdio.h>
int main(void) {
int n;
double x;
char c;
printf("Veuillez saisir un reel.\n");
n = scanf("%lf", &x);
scanf("%lf",&x);
printf("Sa notation scientifique est : %e\n",x);
printf("Veuillez saisir un caractere.\n");
n = scanf("%c", &c);
char c;
scanf(" %c",&c); //mettre un espace empeche le programme de lire le retour à la ligne.
printf("J'ecris ce dernier 5 fois : %c %c %c %c %c\n",c,c,c,c,c);
return 0;
return 0;
}