gfcc #2
11
1.c
11
1.c
@ -9,3 +9,14 @@ int main() {
|
|||||||
std::cout << "Factorial: " << factorial(num) << std::endl;
|
std::cout << "Factorial: " << factorial(num) << std::endl;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#include <iostream>
|
||||||
|
int sum(int a, int b) {
|
||||||
|
return a + b;
|
||||||
|
}
|
||||||
|
int main() {
|
||||||
|
int x, y;
|
||||||
|
std::cout << "Enter two numbers: ";
|
||||||
|
std::cin >> x >> y;
|
||||||
|
std::cout << "Sum: " << sum(x, y) << std::endl;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user