Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to read a Variable an use it within a Function

Status
Not open for further replies.

Gagamel

Programmer
Dec 30, 2008
1
DE
Hi, i have the following problem, how can i read a Variable, taht i want to use within a also readed function.
example:
func(F,Y):- read(X),number(X),Y is F.
should yield to:
func(X+1,Y). with |:3 readed Y=4.
Thx for your help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top