You are printing the result value toward the end of the program. So, i didnt asked anything about this.
But i feel, result variable wont be required. You can remove that, and program will still work...
Type: Posts; User: Sambit
You are printing the result value toward the end of the program. So, i didnt asked anything about this.
But i feel, result variable wont be required. You can remove that, and program will still work...
In the code "s result = 0;" s does not signify any data type. Please change it.
Hope you have imported all the java packages.
Are you using an IDE like eclipse or netbeans, or just writing code in...