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
1
Answer:
hello ooooo
have a nice day ahead
Similar questions
Physics,
2 months ago
Hindi,
2 months ago
Computer Science,
5 months ago
Computer Science,
5 months ago
English,
10 months ago
English,
10 months ago
English,
10 months ago