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

Discussion Overview

The discussion revolves around writing a program to multiply two very large numbers, specifically 157 digits, without using long integers or similar data types. The focus is on the methodology rather than providing a direct solution.

Discussion Character

  • Homework-related, Technical explanation

Main Points Raised

  • One participant requests assistance in writing a program for multiplying large numbers without using long integers.
  • Another participant suggests that the request appears to be homework and declines to provide a complete solution.
  • A later reply indicates that the multiplication process can be conceptually understood by mimicking the traditional pencil-and-paper method of multiplication.

Areas of Agreement / Disagreement

Participants do not reach a consensus on providing a solution, with one participant expressing a willingness to explain the concept while others refrain from writing the program directly.

Contextual Notes

The discussion does not address specific programming languages or techniques that could be used to implement the multiplication algorithm.

Who May Find This Useful

Individuals interested in programming techniques for handling large numbers, particularly in a homework or educational context.

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.
 

Similar threads

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