# Yahoo Web Search

1. ### Write a short code fragment that would compute the sum of the integers from 1 to 100 and leave this sum in \$6?

...t0, \$t1 4: mflo \$t1 5: ori \$t0, \$0, 2 6: div \$t1,\$t0 7: mflo \$6 1 : Load 100 in \$t1 2: Add \$t1 to 1 , store in \$t0 3: Multiply \$t0 and \$t1; this is 101 x 100 (stored...

2 Answers · Computers & Internet · 23/02/2014

2. ### How do you print out all multiples of a given number from 1 - 100 in javascript?[10 easy pts.]?

... of ' + n + ' between 1 and 100 are: ' + multiples.substring( 2 ) +'.'; // write output to screen get( 'rpt' ).innerHTML...msg; } // or, if you just have to do it by {for}... function calcMult2...

4 Answers · Computers & Internet · 08/12/2008

3. ### How do I change this code?

1 ) Change the initial value of count to be 100 rather than 0, then change count++ to count--, then change the test to be != 0 2) Change the count++ line to be count+=2

2 Answers · Computers & Internet · 16/04/2010

4. ### C++ program I can't figure this one out?

int main() { int numbers[ 100 ]; int counter = - 1 ; do { counter++; cout << "Please enter a non-negative integer (enter - 1 to stop): "; cin >> numbers[counter]; } while (numbers[counter...

3 Answers · Computers & Internet · 02/12/2009

5. ### What to do : Write a Java program to compute the following: 1 squared / 1 ! + 2 squared/2! + 3 squared/3!...?

... will use BASIC, you can transcribe to Java 10 x=0 20 for i= 1 to 100 ' sum 100 members 30 f= 1 ' compute factorial 40 for j= 1 to i 50...

3 Answers · Computers & Internet · 12/04/2013

6. ### Square every number to 100 and add up in java?

...ever you get a programming problem, write down in plain english what you have to do to atchive a sollution. Using numbers 1 - 100 Square and add to a total. Display the total. Now break...

7 Answers · Computers & Internet · 31/03/2013

7. ### what's wrong with my program?

... 100 ; number++) Should be a while loop. Prime numbers do not go from 1 to 100 . Therefore you need to count each prime number and continue the loop...

1 Answers · Computers & Internet · 08/11/2012

8. ### How do you generate unique random values in C++?

... create a vector containing numbers from 1 to 100 in order, and then call the standard C++ function random...v is randomized Also remember to call srand() to seed the default random number generator...

5 Answers · Computers & Internet · 05/03/2011

9. ### Write a Pascal program using While Do structure to display even number between 0 & 100 ?

...but YOU need to write the code. 1 ) A While/ Do loop executes as long as the condition...and the "high" limits to your problem are 0 and 100 2) Inside the loop, you have to ...

3 Answers · Computers & Internet · 11/02/2013

10. ### What's wrong with this FORTRAN loop?

...-77)... A loop normally looks like: For J = 1 to 9999 ... code ... Next J However, F77 does seem to allow your construct of a DO loop except it is DO ...

3 Answers · Computers & Internet · 06/05/2019