• Guest, To prevent spam, the BrokenLens Forums are not accepting new registrations at this time.

Multiplication

I mainly know Python and a little bit of C. I also have some basic knowledge in web development with HTML and JavaScript although I haven't really looked into that thoroughly.
View reply.
 
I mainly know Python and a little bit of C. I also have some basic knowledge in web development with HTML and JavaScript although I haven't really looked into that thoroughly.
That’s cool!
My main focus is Java right now, I have started programming last year and doing some projects whenever I have time.
Right now I trying to develop a program which creates a food plan for me taking my weight (current and goal), height, age etc. into consideration, since I enjoy going to gym.
I heard that python is very similar to Java, but never really looked into it
View reply.
 
I actually didn't program what I intended correctly. I thought you were simply supposed to just program something that would multiply n by n+1 with n being the number of times you want to run the loop although I didn't realize that the intent was to have the result of the multiplication be multiplied by the result+1.
I just fixed the program so it does what Bopl intended.
The fourth result for instance would be 42 * 43 = 1,806 while the fifth result would be 1,806 * 1,807 = 3,263,442
View reply.
 
To summarize, I changed my program as I realized it wasn't actually doing what Bopl asked.
Unfortunately though it seems like after 22 numbers, My program simply crashes anyways as the numbers are too large for my computer to process. This is because the numbers that are being worked with are hundreds or even thousands of digits long which seems rather difficult to work with.

upload_2020-11-28_18-35-18.png
View reply.
 
To summarize, I changed my program as I realized it wasn't actually doing what Bopl asked.
Unfortunately though it seems like after 22 numbers, My program simply crashes anyways as the numbers are too large for my computer to process. This is because the numbers that are being worked with are hundreds or even thousands of digits long which seems rather difficult to work with.

View attachment 256928
https://streamable.com/qe51a6
View reply.
 
To summarize, I changed my program as I realized it wasn't actually doing what Bopl asked.
Unfortunately though it seems like after 22 numbers, My program simply crashes anyways as the numbers are too large for my computer to process. This is because the numbers that are being worked with are hundreds or even thousands of digits long which seems rather difficult to work with.

View attachment 256928
i'm interested in what you implemented to get this result lol
View reply.
 

Users Who Are Viewing This Thread (Total: 0, Members: 0, Guests: 0)

Back
Top