Sh3ll
OdayForums


Server : Apache
System : Linux profile 3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 x86_64
User : apache ( 48)
PHP Version : 8.0.28
Disable Function : NONE
Directory :  /var/www/html/venkat/old/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/html/venkat/old/iit2015140_6.c
#include<stdio.h>
#include<string.h>
#include<ctype.h>
int func(char c[],int size)
{
	int i,x;
	for(i=0;i<size;i++)
	{
		if(c[i]!='\0')
		{
			x=c[i]-'0';
			if((atoi(c[i]))==x)
				return c[i];
		}
		else
			break;
	}
}
int main()
{
	char c[100];
	int  i,s=0;
	while((c[i]=getchar())!='\n')
	s=s+1;
	putchar(func(c,s));
	return 0;
}
	
	

ZeroDay Forums Mini