File: Stare vježbe/vjezbe04/24__while.c

  1. /*
  2.   24__while.c
  3.   Uvodimo while-petlju.
  4.   -----
  5.   Program ispisuje englesku abecedu koristenjem while-petlje.
  6. */
  7.  
  8. #include <stdio.h>
  9.  
  10. int main()
  11. {
  12. char ch='A';
  13.  
  14. while (ch<='Z')
  15. {
  16. printf ("%c", ch);
  17. ch++;
  18. }
  19.  
  20. printf ("\n");
  21. return 0;
  22. }
  23.