User Activity

  • Posted a review on Penguin Pills
  • Posted a review on XBasic
  • Modified a comment on discussion General Discussion on xblite

    Here is one I 'borrowed' from 'c-code'. May be more what you were looking for ' original c code can be found at the following website ' https://www.geeksforgeeks.org/program-for-factorial-of-a-number/ ' I VERSION "0.0001" CONSOLE ' IMPORT "xst" ' Standard library : required by most programs ' DECLARE FUNCTION Entry () DECLARE FUNCTION factorial (f) ' FUNCTION Entry () f$ = INLINE$ ("Type a number --> ") f = XLONG (f$) fact = factorial(f) PRINT "Factorial of "; f; " is "; fact a$ = INLINE$ ("Press...

  • Posted a comment on discussion General Discussion on xblite

    Here is one I 'borrowed' from 'c-code'. May be more what you were looking for ' original c code can be found at the following website ' https://www.geeksforgeeks.org/program-for-factorial-of-a-number/ ' I VERSION "0.0001" CONSOLE ' IMPORT "xst" ' Standard library : required by most programs ' DECLARE FUNCTION Entry () DECLARE FUNCTION factorial (f) ' FUNCTION Entry () f$ = INLINE$ ("Type a number --> ") f = XLONG (f$) fact = factorial(f) IF error THEN error$ = ERROR$(error) : PRINT error$ PRINT "Factorial...

  • Posted a comment on discussion General Discussion on xblite

    Hi Willem Very roughly done but I think you will get the picture... ' #################### ' ##### PROLOG ##### ' #################### ' ' A console program template ' VERSION "0.0001" CONSOLE ' IMPORT "xst" ' Standard library : required by most programs ' IMPORT "xsx" ' Extended standard library IMPORT "xio" ' Console input/ouput library ' IMPORT "xst_s.lib" ' IMPORT "xsx_s.lib" ' IMPORT "xio_s.lib" ' IMPORT "gdi32" ' gdi32.dll ' IMPORT "user32" ' user32.dll ' IMPORT "kernel32" ' kernel32.dll '...

View All

Personal Data

Username:
watchmann
Joined:
2021-05-15 14:07:51

Projects

  • No projects to display.

Personal Tools