Make your own free website on Tripod.com

Multiplication Algo
Back Home Up Next

 

  Theory

Projects

Articles

 Written Books

Report

Technical Report

Survey Reports

Workshop

Presentations

Tutorials

Algorithms

Contact Me

Yourself

wpe18.jpg (6473 bytes)

 

STEP 1: START

STEP 2: I = 0

STEP 3: LOOP FIVE TIMES

a. INPUT NUMBER

STEP 4: PRO= N1 * N2 ; WHERE PRO IS THE PRODUCT OF THE TWO NUMBERS

 STEP 5: L1=( N2% 10) * N1; WHERE L1 1S THE MULTIPLICATION OF THE 1ST DIGIT OF 2ND NUMBER BY THE 1ST NUMBER

 STEP 6: L2=(( N2/100)%10)*N2; WHERE L2 IS THE MULTIPLICATION OF THE 2ND DIGIT OF 2ND NUMBER BY 1STNUMBER.

STEP 7: L3=(PRO-L1(L2*10))/100; WHERE L3 IS THE MULTIPLICATION OF THE 3RD OF 2ND NUMBER BY THE 1ST DIGIT NUMBER.

 STEP 8: OUTPUT N1,N2,L1,L2,L3

 STEP 9: STOP