[ create a new paste ] login | about

Link: http://codepad.org/Pq6tH9AZ    [ raw code | output | fork ]

C, pasted on May 20:
1
2
3
4
5
6
7
8
9
#include <stdio.h>
int main() {
  int a;
  for (a = 0; ( 20 + a) * a < 200; a++)
    printf("%d\n", a);
  printf("a(max) = %d\n", a - 1);
  return 0;
}
/* end */


Output:
1
2
3
4
5
6
7
8
9
0
1
2
3
4
5
6
7
a(max) = 7


Create a new paste based on this one


Comments: