Computer Science, asked by Harsh123shukla, 1 year ago

program to find the first 10 multiples of 6 7 8 in Q Basic

Answers

Answered by zakir7581p0visq
1

Multiples of 6:
6, 12, 18, 24, 30, 36, 42, 48, 54, 60, 66, 72, 78, 84, 90, 96, 102, 108, 114, 120

Multiples of 7:
7, 14, 21, 28, 35, 42, 49, 56, 63, 70, 77, 84, 91, 98, 105, 112, 119, 126, 133, 140

Multiples of 8:
8, 16, 24,32, 40, 48, 56, 64, 72, 80, 88, 96, 104, 112, 120, 128, 136, 144, 152, 160

These are the multiples from 1x to 20x, where x is the given number

6 and 7 share a multiple of 42

8 and 7 share a multiple of 56

6 and 8 share a multiple of 120

There’s one way to find a common multiple but it won’t necessarily be the lowestcommon multiple, or LCM.

To do this just multiply the three numbers; the result should always be evenly divisible by all three separately:

6, 7, 8
6*7*8
42*8
336


Harsh123shukla: are qbasic program chahiye
Similar questions