Advertisement
anon20016

4-6

Jan 12th, 2020
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4.  
  5. int main()
  6. {
  7. FILE*in = fopen("in.txt","r");
  8. FILE*out = fopen("out.txt","w");
  9. char c[256];
  10. fgets(c,256,in);
  11. for(int i=0; i<strlen(c); i++){
  12. if(c[i]>='0' && c[i]<='9'){
  13. c[i]='_';}
  14. }
  15. fprintf(out, "%s",c);
  16.  
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement