How can I divide a range by integer that is each number of a range by integer? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I divide a range by integer that is each number of a range by integer?

suppose i have a = (1..7) and b= 2 and now I want find out the value each of number range a divided by b.

11th Sep 2017, 5:21 PM
Abeer Mahmood
Abeer Mahmood - avatar
2 Answers
0
not sure what you need.. but just in case it what I guess is : find ( maximum_value - minimum_value ) both from a , then div by b ? hopefully a is array of integer for easier guess , or at least sorted , if not , well , took a lot of effort to convert integer to string - splitting each string - and put it back to number back and forth , besides , if it was string , the problem could come from digits later on..
12th Sep 2017, 2:15 AM
Mikhael Anthony
Mikhael Anthony - avatar
0
well actually it's like-suppose there's a range (1..3) that means it contains 1,2 and 3. if I want to divide three of these numbers consisting in that range then what will I do?
13th Sep 2017, 8:13 AM
Abeer Mahmood
Abeer Mahmood - avatar