Da_Gamer icon

Function Example 3

Da_Gamer | PRO | 12/17/16 06:46:57 PM UTC | 0 ⭐ | 293 👁️ | Never ⏰ | []
C++ |

330 B

|

None

|

0 👍

/

0 👎

#include <iostream>
#include <stdlib.h>
 
using namespace std;
 
int addTwoNumbers(int a, int b)
{
    int result = a + b;
    return result;
}
 
int addThreeNumbers(int addTwoNumbers(int a, int b), int c)
{
    int result = addTwoNumbers(a, b) + c;
    return result;
}
 
int main ()
{
    cout << result;
    return 0;
}

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎