Please fix the following code below to receive 5 inputs then outputs the maximum number:
CODE
#include <stdio.h>
int main(){
int number[$1],max=0;
for(int i=0;i<5;i++){
scanf("%d",$2);
if(number[i]>$3){
max = $4;
}
}
printf("\nThe maximum number is %d",$5);
return 0;
}
OUTPUT 1
33 5555 22 44 453
The maximum number is 5555
OUTPUT 2
1 3 4 7 2
The maximum number is 7