fork download
  1. :- initialization(main).
  2. funcion (0,_) :- write('').
  3. funcion (N,R) :- R is N.
  4.  
  5. main :-
  6. read(N), funcion(N,R),
  7. halt.
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
0.
compilation info
prog.pl:2:9: syntax error: . or operator expected after expression
prog.pl:3:9: syntax error: . or operator expected after expression
prog.pl:5-7: warning: singleton variables [R] for main/0
	2 error(s)
compilation failed
stdout
Standard output is empty