Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- #include <string.h>
- int waga(char s[30])
- {
- int W=0, l=strlen(s);
- for(int i=0;i<l;i++)
- W+=s[i];
- return W;
- }
- int main()
- {
- char sl[30];
- FILE *slowa, *zwazone;
- slowa=fopen("Slowa.txt", "r");
- zwazone=fopen("ZwazoneSlowa.txt", "w");
- printf("OK.");
- getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement