// a, b, va c butun sonlarni olish
int a, b, c;
std::cout << "a ni kiriting: ";
std::cin >> a;
std::cout << "b ni kiriting: ";
std::cin >> b;
std::cout << "c ni kiriting: ";
std::cin >> c;
for (int i = 1; i <= n; ++i) {
factorial *= i;
S += 1.0 / factorial;
}
}
int main() {
// n butun soni olish
int n,s;
std::cout << "n (butun son, n > 0) ni kiriting: ";
std::cin >> n;
// Yig'indini hisoblash
s=asfa(n);
// Natijani chiqarish
std::cout << std::fixed << std::setprecision(6); // Natija uchun 6 ta belgi ko'rsatish
std::cout << "Yig'indi: " << s << std::endl;