Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <ctype.h>
- #include <string.h>
- void funkcija(char * s) {
- char s2[1000];
- int j = 0;
- for(int i = 0; i < strlen(s); i++) {
- if(!isdigit(s[i])) {
- s2[j] = s[i];
- j++;
- }
- }
- printf("%s\n", s2);
- }
- int main(int argc, const char * argv[]) {
- char s[1000];
- fgets(s, 500, stdin);
- funkcija(s);
- return 0;
- }
- /*
- Prob12en34 tek56st78
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement