Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- This program use a function to calcolate the addition between two numbers
- Author: Qinthes / Vyomi
- */
- #include<stdio.h>
- #include<stdlib.h>
- addition(float x,float y){
- float sum;
- sum=x+y;
- printf("Sum: %f",sum);
- }
- int main(){
- float a,b;
- printf("insert the first number: ");
- scanf("%f",&a);
- printf("insert the second number: ");
- scanf("%f",&b);
- addition(a,b);
- printf("\n\n\n");
- system("Pause");
- }
Add Comment
Please, Sign In to add comment