You are viewing a single comment's thread. Return to all comments →
Array is not required , this will do it for(i=0;i < no;i++) { scanf("%d",&input); if(input == key) printf("%d",i); }
Seems like cookies are disabled on this browser, please enable them to open this website
Intro to Tutorial Challenges
You are viewing a single comment's thread. Return to all comments →
Array is not required , this will do it for(i=0;i < no;i++) {
scanf("%d",&input); if(input == key) printf("%d",i); }