Guest User

Untitled

a guest
Feb 19th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <conio.h>
  2. #include <stdio.h>
  3.  
  4. int main()
  5. {
  6. char massiv[81];
  7. int i, ch;
  8.  
  9. for (i = 0; (i < 80) && ((ch = getchar()) != EOF) && (ch != '\n'); i++)
  10. {
  11. massiv[i] = (char) ch;
  12. }
  13.  
  14.  
  15. massiv[i] = '\0';
  16. printf( "Ti vvel: %s\n", massiv);
  17. getch();
  18. }
Add Comment
Please, Sign In to add comment