18 lines
343 B
C
18 lines
343 B
C
#include <stdio.h>
|
|
int main () {
|
|
float a, b, somme ;
|
|
|
|
printf("Entrer le premier reel\n") ;
|
|
scanf("%f",&a) ;
|
|
printf("Entrer le second reel\n") ;
|
|
scanf("%f",&b) ;
|
|
|
|
somme = a + b;
|
|
printf("a + b = %f\n", somme) ;
|
|
|
|
printf("%f \n", a/b);
|
|
|
|
if (somme < 0) printf("Somme < 0\n");
|
|
else printf("Somme >= 0\n") ;
|
|
}
|