Guest User

Untitled

a guest
Mar 19th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. /*
  2. This program use a function to calcolate the addition between two numbers
  3.  
  4. Author: Qinthes / Vyomi
  5. */
  6.  
  7. #include<stdio.h>
  8. #include<stdlib.h>
  9.  
  10. addition(float x,float y){
  11. float sum;
  12. sum=x+y;
  13. printf("Sum: %f",sum);
  14. }
  15.  
  16. int main(){
  17. float a,b;
  18.  
  19. printf("insert the first number: ");
  20. scanf("%f",&a);
  21. printf("insert the second number: ");
  22. scanf("%f",&b);
  23.  
  24. addition(a,b);
  25.  
  26. printf("\n\n\n");
  27. system("Pause");
  28. }
Add Comment
Please, Sign In to add comment