Debian Codegraph @

texmf-dist/doc/latex/ualberta/99_Inclusions/Code/cCode.cpp

raw
1 #include <iostream>
2 using namespace std;
3 /* This function adds two integer values
4 * and returns the result
5 */
6
7 int sum(int num1, int num2){
8 int num3 = num1 + num2; return num3;
9 }
10
11 void main(){
12 //Calling the function
13 cout << 'The sum is:' << sum(1,99);
14 }