Click here to Skip to main content
15,902,907 members

Comments by jatinp510 (Top 36 by date)

jatinp510 9-May-19 4:50am View    
unlink here is referring to deleting the file.
jatinp510 28-Nov-17 0:08am View    
soo.. how to pratice coding.
jatinp510 27-Nov-17 13:42pm View    
can u suggest me other solutions.
what else i can try.
jatinp510 27-Nov-17 13:36pm View    
#include <stdio.h>
#include<string.h>

int main()
{


int t,len,u;
scanf("%d",&t);
while(t--)
{
char a[101];
scanf("%s",&a);
len=strlen(a);
u=a[len-1];

if(u%2==0)
printf("YES\n");
else
printf("NO\n");
}
return 0;
}

sir,i have tried this.
is this correct method.
jatinp510 27-Nov-17 13:07pm View    
thnku sir.... :)
your words helps me :)

#include <stdio.h>
#include<string.h>

int main()
{


int t,len,u;
scanf("%d",&t);
while(t--)
{
char a[101];
scanf("%s",&a);
len=strlen(a);
u=a[len-1];

if(u%2==0)
printf("YES\n");
else
printf("NO\n");
}
return 0;
}