-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathAMR11G.cpp
More file actions
29 lines (29 loc) · 809 Bytes
/
AMR11G.cpp
File metadata and controls
29 lines (29 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include<stdio.h>
#include<conio.h>
char[] check(char *p){
char a[]="You shall not pass!";
char b[]="Possible"
while(*p!='\0'){
if(*p=='D'){
return a;
};
}
return b;
}
int main(){
int a,i;
scanf("%d",&a);
i=a;
char temp[10][10];
while(a>0){
scanf("%s",&temp[a-1]);
temp[a-1]=check(&temp[a-1]);
a--;
}
while(i>0){
printf("%s",temp[i-1]);
i--;
}
getch();
return 0;
}