I have this piece of code
when i ran it it asks for the numberCode:int main(){ int x; printf("number:"); scanf( "%d" , &x); printf("x!== %d",x,fakt(x)); getchar(); return 0; }
when you press enter it closes...
where is the problem???
note:fakt function works properly