IN / OUT in C Programming
Code:
#include<stdio.h>
int main()
{
int mincount, maxcount, c;
printf("Enter the number of problems given\n");
scanf("%d",&maxcount);
printf("Enter the number of problems solved\n");
scanf("%d",&mincount);
c=maxcount/2;
if(mincount>c)
printf("IN");
else
printf("OUT");
return 0;
}
No comments