Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 402 Bytes

README.md

File metadata and controls

25 lines (22 loc) · 402 Bytes

#include<stdio.h> //#include<conio.h> int main() { char s[100]="sdklgghf12"; //scanf("%s",s); int count=0; char p=s; while((p) != NULL) { if(!isdigit((p-1)) && isdigit(p) && isdigit((p+1)) && isdigit((p+2)) && !isdigit((p+3))) { printf("%c%c%c\n",p,(p+1),(p+2)); p=p+3; count++; } p++;

} if(count==0) printf("-1");

return 0; }