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/ism2015001_3.c
#include <stdio.h>
#include <stdlib.h>
char *func(char *p);
int main()
{
	char *p, *q;
	p = (char *)malloc(60*sizeof(char));
	scanf("%s", p);
	q = func(p);
	printf("%s\n", q);
	return 0;
}
char *func(char *p)
{
	char *q;
	q = (char*)malloc(60*sizeof(char));
	int i = 0, j = 0;
	while (p[i] != '\0')
	{
		if (p[i] != '1' && p[i] != '2' && p[i] != '3' && p[i] != '4' && p[i] != '5' && p[i] != '6' && p[i] != '7' && p[i] != '8' && p[i] != '9' && p[i] != '0')
		{
			q[j] = p[i];
			j++;
		} 
		i++;
	} 
	return q;
}

ZeroDay Forums Mini