Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- int main()
- {
- FILE*in = fopen("in.txt","r");
- FILE*out = fopen("out.txt","w");
- char c[256];
- fgets(c,256,in);
- for(int i=0; i<strlen(c); i++){
- if(c[i]>='0' && c[i]<='9'){
- c[i]='_';}
- }
- fprintf(out, "%s",c);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement