Computer Science, asked by srijapotterhead, 5 months ago

6
int findTotalDistance(int input1, int input2[])
7
8
9
10
11
// Read only region end
int difference, sum=0;
for(int i=0; i {
difference= abs(input2[i]-input2[i+1]);
sum - sum + difference;
}
return Sum;
12
13
14
15
16
17
18
19
2e
21
22
int result = findTotalDistance(input1, input2);
printf("\n%d", result);
return 0;

Attachments:

Answers

Answered by hoshini83
1

Answer:

hello ooooo

have a nice day ahead

Similar questions