Write a Program to Multiply 2 Numbers (w/o Long Ints)

  • Thread starter Thread starter hadi amiri 4
  • Start date Start date
  • Tags Tags
    Program
Click For Summary
The discussion centers on the challenge of writing a program to multiply two large numbers, specifically 157-digit integers, without using long integers or similar data types. Participants emphasize that this task resembles traditional pencil-and-paper multiplication methods. There is a clear stance against providing direct solutions, suggesting that the focus should be on understanding the algorithmic approach rather than simply coding the solution. The conversation highlights the importance of grasping the underlying principles of multiplication for large numbers.
hadi amiri 4
Messages
98
Reaction score
1
Can anyone write a program that multiply two( for example 157 digits) number?
(without using long integers or ...)
 
Technology news on Phys.org
Of course.

This looks like homework; we are not going to write such a program for you.
 
thanks
 
Essentially you'll need to duplicate what you would do if multiplying numbers using pencil and paper.
 
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

Replies
12
Views
3K
  • · Replies 49 ·
2
Replies
49
Views
4K
  • · Replies 28 ·
Replies
28
Views
4K
  • · Replies 16 ·
Replies
16
Views
2K
Replies
14
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
3
Views
2K
  • · Replies 25 ·
Replies
25
Views
2K
Replies
10
Views
2K