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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: roykw
  • Content: Threads
  • Order by date
  1. roykw

    if -then -else question

    Hello, i am a newbie and i have the C-like code: ------ if( x > 10){ x = x + 5 - y; y = x; }else{ y = 0; x = 0; } ------ and i would to figure how the above code would be in prolog. So, i was trying : ------ ( X > 10 -> X is X + 5 - Y, Y is X ; Y is 0, X is 0 ) ...

Part and Inventory Search

Back
Top