Advertisement
Guest User

Untitled

a guest
May 22nd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <conio.h>
  3. #include <string.h>
  4. int waga(char s[30])
  5. {
  6. int W=0, l=strlen(s);
  7. for(int i=0;i<l;i++)
  8. W+=s[i];
  9. return W;
  10. }
  11.  
  12. int main()
  13. {
  14. char sl[30];
  15. FILE *slowa, *zwazone;
  16. slowa=fopen("Slowa.txt", "r");
  17. zwazone=fopen("ZwazoneSlowa.txt", "w");
  18.  
  19.  
  20. printf("OK.");
  21. getch();
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement