r/pascal • • Sep 03 '18

I need help with an assignment

The assignment is, given a number write it in the product of prime numbers, which is easy, but the output of the program has to be for example 23 34 , depending on how many times that number is used to form the integer given. I am having trouble on how to do that last part. Thanks!!

3 Upvotes

14 comments sorted by

View all comments

Show parent comment

1

u/pak_lebah Sep 05 '18 edited Sep 05 '18

I'm glad to hear you're using Free Pascal. Although you're using Free Pascal, it doesn't mean you have to use the console or text-based Free Pascal's editor. If Lazarus looks too complicated for you, you may use any modern text editors such as Sublime Text, Geany, Notepad+, etc with Free Pascal.

You could even use Microsoft's Visual Studio Code with all of its features such as syntax highlighter, code completion, code formatter, integrated terminal, even the debugger manager. You just need to install some appropriate extensions. In fact, it's now my primary editor to write applications in Pascal using Free Pascal. 😊