Your while loop is writing to console but the values of sayi2 and sayi1 are not changed so its effectively an infinite loop.
You need to add something to request the values again
You also need to get rid of the function call immediately after the IF