Transférer les fichiers vers 'TP2'
This commit is contained in:
parent
ec82c21075
commit
e7e36c8bcb
|
@ -0,0 +1,17 @@
|
|||
#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") ;
|
||||
}
|
Loading…
Reference in New Issue