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 Chriss Miller 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: nn987
  • Content: Threads
  • Order by date
  1. nn987

    java.util.calendar

    thread269-1703513 What is the best way to store a simple date. Should I just store it as a String or should I go through the process of using java.util.calendar or something similar? I found this code on the internet and is a good example to work with dates import java.util.Calendar; import...
  2. nn987

    generate all perfect number until 100...

    someone asked how to calculate the perfect numbers until 100 .And know I don't find that person. But here it is . %generate all perfect number until 100... %Create perfect numbers %divisible(10,2). divisible(X,Y):- N is Y*Y,N =< X,X mod Y =:= 0. divisible(X,Y):- Y < X, Y1 is Y + 1...
  3. nn987

    generate all perfect numbers until 100. ...

    Someone asked how to calculate the perfect numbers until 100 .And know I don't find that person. But here it is %generate all perfect number until 100... %Create perfect numbers %divisible(10,2). divisible(X,Y):- N is Y*Y,N =< X,X mod Y =:= 0. divisible(X,Y):- Y < X, Y1 is Y + 1...
  4. nn987

    generate a list of prime numbers

    hi all :) how can I generate a list of Prime numbers until N. i.e primes(20,L). [2,3,5,7,11,13,17,19] thanks.
  5. nn987

    multiply 2 number

    how to proced with the empty lists in this case? %Multiply elements of one list multLista([],1). multLista([E|T],R):-multLista(T,Multiplica),R is Multiplica*E. ~ ex: multLista([1,2,3,4],R). R=24 multLista([],1). R= 1 !!!! Thanks

Part and Inventory Search

Back
Top