Compare commits
No commits in common. "branch2" and "main" have entirely different histories.
11
1.c
11
1.c
@ -9,14 +9,3 @@ 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