#include <stdio.h>
#include <stdbool.h>
int main() {
int a[10] = {876,567,423,234,120,678,356,940,366,000};
int n;
bool flag = true;
printf("Enter your ID: ");
scanf("%d", &n);
for(int i = 0;i < 10; i++){
if(a[i]==n){
flag = false;
}
}
if(flag==true){
printf("Unaccepted");
}
else(flag==false){
printf("Accepted");
}
return 0;
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter