https://i2.wp.com/eblogarithm.com/wp-content/uploads/2017/04/April-Fools-Contest-2017-problem-C-INTERCALC-Solution-in-C1.png?fit=640%2C360

April Fools Contest 2017, problem: (C) INTERCALC Solution in C

#include<stdio.h>
int main(){
 int a[10], i, n, max=0;
 scanf("%d", &n);
 for(i=0; i<n; i++){
 scanf("%d", &a[i]);
 if(max<a[i]) max=a[i];
 }
 printf("%d", max^a[n-1]);
 return 0;
}
(Visited 41 times, 1 visits today)



There are no comments

Add yours

Leave a Reply

%d bloggers like this: