Murakkab algoritmlarni dasturlash

y = xⁿ funksiyasini rekurent formula orqali hisoblash dasturini tuzing. (x-ixtiyoriy son, n=10) # include <iostream.h> void main ( ) { float x=2.56, y=1; for (int i=1; i<=10; i=i+1) y = y*x; cout <<“y=“<< y << endl; } # include <iostream.h> void main ( ) { int n; long p =1; f or ( n=1; n<=13; n++) p= p * n; cout << “N faktorial =“<<p<<endl; }

Kechirasiz, bu mumkin emas.