#include
#define SIZE 6
int main(){
char digit, arrDigit[SIZE];
int i,
num1,
num2,
avg,
ctrlLoop;
int getAvg(int num1, int num2, int avg){
avg = num1 + num2;
avg = avg/2;
return avg;
}// end getAvg
int charToInt(char array[SIZE], int num){
int j;
num = array[i - 'o'];
for(j=0;j
num += array[i - '0'];
}//end for
return num;
}//end charToInt
int getAvg(int num1, int num2, int avg){
avg = num1 + num2;
avg = avg/2;
return avg;
}// end getAvg
No comments:
Post a Comment