I beleive that everything else is correct, but for some reason I keep getting 49 instead of 100. If someone could help me fix it and also explain why it is like that. That would be so helpful.
Im sure it is just some more realistic goals, but I dont think that Java takes that into account. lol
I have also tried int n = reader.read(); and it is still coming out as 49. Im confused.
package com.codegym.task.task03.task0325;
import java.io.*;
/*
Financial expectations
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int n = System.in.read();
System.out.print("I will earn $" + n + " per hour");
}
}