Sunday

April 20, 2014

April 20, 2014

Posted by **sardar** on Thursday, February 16, 2012 at 6:34am.

int prod,i,j,rem;

int base=10;

else if ( op == '*' ) //checks for operator, performs array multiplication

{

for(i=size-1; i>-1;i--)

{

for(int j=size-1; j>-1;j--)

{

prod =firNum[i]*secNum[j];

prod += carry;

if(prod>=base)

{

carry = (prod/base);

prod -= (carry*base);

}

else

{

carry = 0;

final[i+j] += prod;

if(final[i+j] >= base)

{

rem = (final[i+j]/base);

final[i+j] -= rem*base;

carry += rem;

}

if(final[i+j] >= base)

{

final[i+j-1] += (final[i+j]/base);

final[i+j] = final[i+j] % base;

}

}

}

}

- Programming?? -
**Writeacher**, Thursday, February 16, 2012 at 7:10amIf you really want an expert to help you, be sure to follow directions and type your

__subject__in the**School Subject**box. Any other words,__including obscure abbreviations__, are likely to delay responses from a teacher who knows that subject well.

- Java - incomplete -
**MathMate**, Thursday, February 16, 2012 at 8:09amThe program will not compile, because many variables are undefined (for C/C++/C# or Java).

You will need to define a variable before first use.

Also, an if statement cannot start with "else if".

Perhaps you have missed out a part of the code.

**Related Questions**

computer science - int *reverse(const int *, int); int *temp; temp = reverse(...

Computers - //program that puts two lists in order in one single list with all ...

Computer Science - //program that puts two lists in order in one single list ...

computer - If int main() { int a=1; int *p; how do the following statements ...

C# - 5) Suppose you have declared an integer array named scores and you make the...

computer - can someone explain this statement please int a=(int *)new int[4][3];

Calc - f(x,y,z) = y; W is the region bounded by the plane x+y+z=2;cylinder x^2+z...

check my precalc - #1. (3x^3-4x^2-3x+4)/(x^3-5x) my answers: y-int: NONE x-int: ...

Precalc - #1. (3x^3-4x^2-3x+4)/(x^3-5x) my answers: y-int: NONE x-int: 1, -1, ...

pre calc - how do uu find the x int. , y int. , domain range asytote of this ...