Advertisement
Guest User

Untitled

a guest
Jan 20th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <conio.h>
  4.  
  5.  
  6. int main(void)
  7. {
  8.     int licznik;
  9.     char znak1;
  10.  
  11.     licznik = 0;
  12.     while( (znak1 = getche()) != 27)
  13.     {
  14.         printf("\t%c\n", znak1);
  15.          ++licznik;
  16.     }
  17.  
  18.     printf("\nWiersze wejsciowe: %d", licznik);
  19.  
  20.     getch();
  21.     return 0;
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement