Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int summa(int n2);
- int summa(int n1, int n2);
- double summa(double n1, double n2);
- ///////////////////////////////////////////
- int main()
- {
- printf("summa = %d \n", summa(300 ));
- printf("summa = %d \n", summa(3 , 2 ));
- printf("summa = %.2f\n", summa(3.2, 2.1));
- return 0;
- }
- ///////////////////////////////////////////
- double summa(double n1, double n2)
- {
- return n1 + n2;
- }
- ///////////////////////////////////////////
- int summa(int n1, int n2)
- {
- return n1 + n2;
- }
- ///////////////////////////////////////////
- int summa(int n2)
- {
- return 7 + n2;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement