1000 lines of C a week?

sc2y at vax5.CIT.CORNELL.EDU sc2y at vax5.CIT.CORNELL.EDU
Tue Jun 13 01:56:13 AEST 1989


In article <15526 at pollux.UUCP> leff at smu.edu (Laurence Leff) writes:
>A project needs a person with a proven capability of generating
>a thousand lines of debugged C a week.  

Okay, how about this?
  
   /* compute square root of a number if less than 1000 */
   float comp_sqrt(x)
   int x;
   {
    if (x  == 1)
      return (sqrt(x));
    else if (x == 2)
      return (sqrt (x));
    else if (x == 3)
      return (sqrt (x));
    /* ... et cetera ... */
    else if (x == 999 )
      return (sqrt (x)) ;
    else
      return (ERROR) ;
   }
     
Do I get the job?



More information about the Comp.lang.c mailing list