Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
Type your program source Select your Operating System click compile and download your executable file!
This is the C/C++ Online Compiler.
In online compilers (.net) you can find and use online many compilers ( GCC, MINGW, GFORTRAN, JAVA, GPC, FREEBASIC) for the mainstream languages that exist, you can search THE LINUX MANUAL (DEV MAN) PAGES, the JAVA & WIN32 API'S. Also, i have gathered some material to get you started with programming.
Latest User Submitted Question!

Name: krish
Title:
  solve compilation time error
Question:
#include<stdio.h>
#include<string.h>
int checklucky(char *a);
int iseven(int sum);
int add(char *a);
int iseven(int sum)

 {
   int fin;
   if((sum%2)==0)
     fin=1;
   return fin;
 }
int add(char *a)
{
  int i=0,sum=0;
  int len=strlen(a);
  for(i=0;i<len;i  )
  {
    sum=sum a[i];
  }
  return sum;
}
int checklucky(char *a)
{
  return iseven(add(a));
}
int main(int argc,char** argv)
{
  char a[100];
  int lucky;
 printf("Enter the input string\n");
  scanf("%s",a);
  lucky=checklucky(a);
 printf("%s %s lucky\n",a,(lucky==1 ?"is":"is not"));
return 0;
}

int checklucky(char *a)
{
  return iseven(add(a));
}
int main(int argc,char** argv)
{
  char a[100];
  int lucky;
 printf("Enter the input string\n");
  scanf("%s",a);
  lucky=checklucky(a);
  printf("%s %s lucky\n",a,(lucky==1 ?"is":"is not"));
return 0;
}
Answers: Name: uday
you stuptd error human