Welcome to my personal portfolio website!
I am a dedicated second-year computer science student with foundational skills in C++ and Python, keen on continuous learning and applying theoretical knowledge in practical settings.
#include <iostream>
using namespace std;
// Simple program to calculate the factorial of a number
int factorial(int n) {
if (n == 0) return 1;
return n * factorial(n - 1);
}
int main() {
int number;
cout << "Enter a number: ";
cin >> number;
cout << "Factorial of " << number << " is " << factorial(number) << endl;
return 0;
}
Phone: +7 919 395 0555
Discord: @orelkrylatiy