Here is my code to distinguish between integers and numbers with decimal point. the table should display all numbers with their notes,
but here the table display only the last two numbers what to do?? :!
Your first for loop writes the answers only into value1 and value2, overwriting the previous values with each iteration. Thus, after the loop is complete, value1 and value2 have the "last 2 values" as you put it.
Your output for loop just prints those same two values over and over again 8 times.
What you'll probably want to do is make just a single "value" array and store the answer for each number in that, then print out each of those elements at the end.