Guest User

Untitled

a guest
Jan 13th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. float addf(a,b);
  4.  
  5. int main(){
  6.  
  7. float input1 = 10.0;
  8. float input2 = 20.0;
  9.  
  10. printf("%f + %f = %f", input1, input2, addf(input1, input2) );
  11.  
  12. getchar();
  13.  
  14. return 0;
  15. }
  16.  
  17. float addf(float a, float b){
  18.  
  19. return a + b;
  20. }
Add Comment
Please, Sign In to add comment