In future, I'd suggest you say what your problem is as well as what your code does!
But, the first problem I see lies here:
That doesn't make sense. A better layout would possibly be something along these lines.
answer = document.questions.answer.value;
response = "correct";
response = "wrong";
document.questions.result.value = response ;
rndNum = Math.random();
Num = Math.round(rndNum*20);
sum = Num+Num1;
Unchecked, so I'm unsure if it works.
BTW, do you want it always to be a pair like, 20+10,19+9,18+9,17+8 etc.? If not, you need two random numbers.
Also, I would advise that you get into the habit NOW of indenting your code correctly, or learn to use an editor that will do so for you. It will help! And in the future, you won't want to be using implied global variables like you are now.
Great wit and madness are near allied, and fine a line their bounds divide.
I have two, dollar values (a and b). I need to divide the larger (max) into the smaller (min) and multiply by 100 to get the percentage difference (c value) for box3.
I've tried multiple variations, and tried researching this relatively simple equation to find code, but without finding or understanding what I need. I'm not a programmer and need help.
This is my best attempt: