your welcome.. happy to help you :D
Type: Posts; User: dicdic
your welcome.. happy to help you :D
are you asking to help you with that problem? or you can solve it yourself?
I said that because of this:
do you mean to store it in different variables? so that you can access it when you...
okay i'll give you example, a simple example closer to your problem.
I hope it is okay to the administrator of this forum to show some simple example.
import java.util.Scanner;
public...
look at your loop statement for ( int i = 0; i < 10; i++ )
as you noticed, it will execute 10 times right?
but actually, you can make it execute more than or less than 10 times
if you put some...
okay,
what if you put a conditional statement right after you get the input?
after number = scan.nextInt ();? so that you can check it right after you get the user's input(that is what i'm talking...
yes you did, but it seems that you did not remove its braces? please check although it wont a affect your program
I guess you tried to input -10 right?
and the problem is your program cant...
what I meant when I said about wrong arithmetic solution is just to remove total += total
Sorry if I made you confused with that. I'm not good in English :)
Actually your solution is right
just...
No, it will still execute 10 times.
if you want to remove Number of values = 71500 from output,
then erase this in your statement System.out.println("Number of values = " + total);
and the...
what do you mean by unusual output?
can you send here sample output? so we can see it?
And I just want to ask, what is the sense of your outer loop?
for ( int i = 0; i < 1; i++ ) //Executes 1 time...
Please edit your code into proper highlights
[c o d e = j a v a]
// your code goes here
[/ c o d e]
just remove the spaces I put
Actually it does computed the maxGrade, minGrade and average(if...