¡Crea un programa usando la declaración if en vfp! ¡Pregunta por un maestro!
borrar
Ingrese "Ingrese un valor para x:" en x.
Si x gt=0
Si x gt0
y=x 1
Otro
y= x
endif
Otro
y=x-1
endif
" y= ", y
Ingrese "Ingrese un valor para x:" en x.
Si x gt=0
Si x gt0
y=x 1
Otro
y= x
endif
Otro
y=x-1
endif
" y= ", y