42 Topics

Member Avatar for
Member Avatar for Dman01

Hi The following code shows good enough how to multiply two long data [CODE]long x = 10, y = 3; long p = 0; while (y > 0) { if ((y & 01) != 0) p += x; x <<= 1; y >>= 1; } std::cout << "\nResult : " …

Member Avatar for Dman01
0
667
Member Avatar for Justinedeleon

Oh. btw admin! sorry about my earlier thread. i promise not to do something like that ever again :) anyway. i was having trouble with my project and its about Multiplication with loops. i started with a few codes and im really frustrated with what im doing now. please let …

Member Avatar for Justinedeleon
0
337
Member Avatar for Petan Kl

Hello, I am wondering if there is an efficient way (other than for cycle) of solving following task: I need to multiply e.g. two matrices and at every point in the matrix there is an array. The two matrices shall be multiplied using matrix multiplication and when the elements of …

Member Avatar for Gribouillis
0
211
Member Avatar for astnrocker

This looks as it should except that it needs more spacing between the columns. How would I do that? [CODE]<script type="text/javascript"> /* <![CDATA[ */ var numRows = "10"; var numCols = "10"; if (isNaN(numRows) || isNaN(numCols)) { }else { var tblHTML = "", rowHTML; for (var row = 0; row …

Member Avatar for Airshow
0
190
Member Avatar for pardhu463

Hi to all, I am new to this forum..If i did any thing wrong in this thread please correct me... Let me tell you something about my project .... I am working on ARM7-LPC2148 processor with Graphical LCD. Now i am making a calculator which should be like as our …

Member Avatar for N1GHTS
0
189
Member Avatar for rpv_sen

Hi Friends Pls help me, i have posted the code below, i am trying to multiply 2 text box values from thisqty and prate and final value has to be show in thisamt text box, and also i have attachment the screen shot [CODE]<form method="post" action="#" enctype="multipart/form-data" name="billing"> <table width="1000" …

Member Avatar for rpv_sen
0
278
Member Avatar for jsp01

Hey everyone, I've got a question where I'm sort of stuck on writing a java code for a recursive "school method" multiplication where we have input 'n' and two n digit numbers 'a' and 'b' where the output is m=a.b. I also have to use an array representation for representing …

Member Avatar for Darryl.Burke
0
227
Member Avatar for butchoy

[ICODE]#include<iostream> #include<conio.h> #define height 10 using std::cout; using std::cin; using std::endl; int main () { //int num=0; int n,m,width; int count = 0; int nums[count]; int div=0; cout<<"Enter the number you wish to enter: "; cin>>width; int jologs [height][width]; cout<<endl<<width<<endl; for (int i=0, m=width; i < width; m--,i++) { cout<<endl<<endl<<"Number(s) …

Member Avatar for butchoy
0
188
Member Avatar for JordanHam

int arr[]={4,5,6,8,1,6,4,7,1,2}; and I want and array to equal the ln of those values in an array? I dont why I am having so much trouble with this. Thanks!

Member Avatar for JordanHam
0
125
Member Avatar for TrustyTony
Member Avatar for Gribouillis
1
720
Member Avatar for giftalp

I have created class menu and class number. I would like that my functions in class do sum, subtract, multiply, and divide. I've done sum, but I have problems with other functions. When I do difference, it is actually sum my numbers, and result of multiplication and division is 0 …

Member Avatar for giftalp
0
190
Member Avatar for crodriguez08

Hey there, I'm having trouble creating a multiplication function for the program as I have two classes to keep in mind (Monomial and Polynomial). And if possible, a little advice on how to make my for statements in the arithmetic operators more flexible to user input such as i<PolynomialSize, which …

Member Avatar for crodriguez08
0
1K

The End.