Math, asked by jyoshnasree123, 4 months ago

#include<stdio.h>
int f(int *a, int n)
{
if (n<=0)return 0;
else if(*a%2==0)
return *a+f(a+1,n-1);
else return * a-f(a+1, n-1);
}
int main()
{
int all={12, 7, 13, 4, 11, 6);
printf("%d",f(a,6));
return 0;
}​

Answers

Answered by Anonymous
2

A thermostat is a component which senses the temperature of a physical system and performs actions so that the system's temperature is maintained near a desired setpoint.

Similar questions