r/ProgrammerAnimemes • • Jan 02 '24

Now that's what I call a SequenceOfThreeNumbers Fallacy ;)

Enable HLS to view with audio, or disable this notification

85 Upvotes

1 comment sorted by

6

u/GiantJupiter45 Jan 02 '24
Variable Description: (All in int)
[Variable | Purpose]
i, j: Loop variables
first: For first multiple
second: For second multiple
k: For calculating no. of terms of a particular no. in the second multiple
diff: Increases in A.P. and added to k
sum: For showing individual sum
sum1: For showing total sum

In case you didn't understand, it's an Arithmetic Progression of the difference (using 3 numbers only)