Advertisement
ProgramoBien

Problema 1

Feb 7th, 2017
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 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 dos es: %.5lf", suma, a ); //precision de 5 decimales
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement