Medium
Differences Generator
Write a generator
diffs(nums) that yields each number minus the one before it. Read integers (at least 2) and print the yielded values on one line.Input
Integers separated by spaces.
Output
One line.
Sample 1
Input
1 4 9 16
Output
3 5 7
Sample 2
Input
5 5
Output
0
Output appears here