nogood.c 251 B

1234567891011121314
  1. /* nogood.c -- a program with errors */
  2. #include <stdio.h>
  3. int main(void)
  4. (
  5. int n, int n2, int n3;
  6. /* this program has several errors
  7. n = 5;
  8. n2 = n * n;
  9. n3 = n2 * n2;
  10. printf("n = %d, n squared = %d, n cubed = %d\n", n, n2, n3)
  11. return 0;
  12. )