Guest User

Untitled

a guest
Jul 22nd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <windows.h>
  3.  
  4. int funkcja(char *nap1){
  5.  
  6. int i=0;
  7.  
  8. while(nap1[i]!='\0'){
  9. i=i+1;
  10.  
  11. }
  12.  
  13. return i;
  14. }
  15.  
  16.  
  17. int main(){
  18.  
  19. char napis[128];
  20.  
  21. scanf("%128s", napis);
  22.  
  23. //strcpy(napis, " ala ma wibrator i uzywa go do przejazdzek");
  24.  
  25. printf("%d \n", funkcja(napis));
  26.  
  27.  
  28. system("pause");
  29. return 0;
  30. }
Add Comment
Please, Sign In to add comment