I wrote a simple program to calculate simple interest for my CS class but it\'s behaving unexpectedly when I compile it in linux as shown below:
The program: