"Helping" implies that we will give you ideas and lead you into the right direction, not code for you. Because then you have learnt nothing..... -_-
Type: Posts; User: Seraphim
"Helping" implies that we will give you ideas and lead you into the right direction, not code for you. Because then you have learnt nothing..... -_-
Try looking at breaking apart the massive thing first, from there on in it becomes easy.
1. break up into the smaller numbers
2. add the smaller numbers
3. save this total
4. display this total
...
Have you even attempted doing this at all?
Think logically how you would do this. On paper you would write down the numbers and then add each one to the next till you have a total.
In a computer you have to first "write" down the numbers by...
Can you give me an idea of what you have already and what code you have tried please.
If I were doing this on paper to add something up you plus one thing to another, so maybe you should try to add another variable that equals the number you just read into your array and add it to the...
Thanks that helped.
--- Update ---
I did figure it out in the end. but yes thank you for your teaching @vijay196
public class BasicExamRevision1 {
public static void main(String[] args) {
int i, j, z, y, x;
int count = 0;
int RanArray [] = new int[30];
int countArray[] =...