Advertisement
Guest User

Untitled

a guest
Dec 13th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<string.h>
  3.  
  4.  
  5. int main() {
  6.     char str[150];
  7.     char *token;
  8.    
  9.     gets(str);
  10.    
  11.     for(token = strtok(str, ","); token != NULL; token = strtok(NULL, ",")) printf("%s\n", token);
  12.    
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement