Advertisement
Guest User

Untitled

a guest
May 5th, 2016
50
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 <stdlib.h>
  3.  
  4. /* run this program using the console pauser or add your own getch, system("pause") or input loop */
  5.  
  6. int main(int argc, char *argv[])
  7. {
  8. char mystring[] = "hel1lo35";
  9. int i;
  10.  
  11. for (i=0;mystring[i];i++)
  12. {
  13. if(!isalpha(mystring[i]))
  14. {
  15. printf("%c",mystring[i]);
  16. }
  17. }
  18.  
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement