I have no idea what you are trying to do but you certainly cannot assign an int value to a String variable. Either mhr should be an int or you need to convert the result of (220 - age) to a String...
Type: Posts; User: Junky
I have no idea what you are trying to do but you certainly cannot assign an int value to a String variable. Either mhr should be an int or you need to convert the result of (220 - age) to a String...
I also advised you against posting links to unreadable images. You can compile your code on the command line or your IDE should have a window called "Console" or similar that will display the full...
Would you mind posting the error. That is three times I have asked now. If you really want my help you are not going about it the right way.
mhr = (220 - age );
In post 4 I ask you to post any error messages you get. Surely that line gives you an error. Surely you can work out why.
Still not a question.
I hate to harp on about this but it is basic communication skills that you will need to develop and use throughout your life.
Do you have a specific question? If you are getting errors then copy and paste them here.
BTW do not expect people to follow links to find information. Especially when it is a tiny unreadable...
One step at a time. Surely you can do
//Prompt user for input
When you have compile and run the code to make sure it works. If it does move onto the next step.