Search found 1 match

by Singham_CUET
Sat Jan 28, 2012 12:37 pm
Forum: Volume 122 (12200-12299)
Topic: 12250 - Language Detection
Replies: 6
Views: 3651

12250

I got time limit...here is my code.can anybody help me to fix it? #include<stdio.h>
#include<string.h>
int main()
{
int i;
char a[15];
i=1;

while(1)
{

gets(a);

if(a[0]=='#'&&a[1]=='\0')
break;
else if(strcmp(a,"HELLO")==0)
printf("Case %d: ENGLISH",i);
else if(strcmp(a,"HOLA")==0 ...

Go to advanced search