sweetie1.c 342 B

123456789101112131415
  1. // sweetie1.c -- a counting loop
  2. #include <stdio.h>
  3. int main(void)
  4. {
  5. const int NUMBER = 22;
  6. int count = 1; // initialization
  7. while (count <= NUMBER) // test
  8. {
  9. printf("Be my Valentine!\n"); // action
  10. count++; // update count
  11. }
  12. return 0;
  13. }