1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#include <stdio.h> int main() { short n, i; long b[10001] = {}; scanf("%hd", &n); for (i = 1; i <= n; i++) { scanf("%ld", &b[i]); b[i] *= i; } for (i = 1; i <= n; i++) printf("%ld ", b[i] - b[i - 1]); printf("\n"); return 0; }