fork download
  1. #include <stdio.h>
  2.  
  3. double Somar(double a, double b) {
  4. return a + b;
  5. }
  6.  
  7. int main() {
  8. double a, b;
  9. printf ("Digite a: ");
  10. scanf("%lf", &a);
  11. printf ("Digite bi ");
  12. scanf("%lf", &b);
  13. printf("O resultado eh %lf", Somar(a, b));
  14. }
  15.  
  16. //https://pt.stackoverflow.com/q/366060/101
Success #stdin #stdout 0s 9424KB
stdin
1
2
stdout
Digite a: Digite bi O resultado eh 3.000000