ProgramoBien

Problema 1

Feb 7th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.20 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main() {
  4.     double a,b;
  5.     scanf("%lf%lf",&a,&b);
  6.     double suma=a+b;
  7.     if(b>a)
  8.         a=b;
  9.     printf("Suma: %.5lf, el mayor de los 2 es: %.5lf", suma, a ); //precision de 5 decimales
  10. }
Add Comment
Please, Sign In to add comment