hey i wanted to do this character validator i tried running into for loop then
chking if each character are == but i dunno whats wrong
Code:#include <stdio.h> int main(void) { char stuff[]="ASDFGHJKL;'/.,mnbvcxzqwertyuiop[]=-09038837351523535355,znbzvvvgjkkld"; char validator[]="asdfghjklmnbvcxzqwertyuiop"; int i; int x; for(i=0,x=0;stuff[i]!='\0',validator[x]!='\0';i++,x++) { if(stuff[i]==validator[x]) printf("%c",stuff[i]); } return 0; }