-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbanking.c
62 lines (60 loc) · 887 Bytes
/
banking.c
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <string.h>
int main()
{
int a[100],f,c,;
printf("1.do you have headache?\n");
scanf("%c",&a);
if(strcmp(a,'y')==0)
{
printf("");
f++;
}
printf("2.do you have wamitting scense?\n");
scanf("%c",&a);
if(strcmp(a,y)==0)
{
f++;
}
printf("3.....");
scanf("%c",&a);
if(strcmp(a,'y')==0)
{
f++;
printf("4.....");
scanf("%c",&a);
if(strcmp(a,'y')==0)
{
f++;
}
printf("5.....");
scanf("%c",&a);
if(strcmp(a,'y')==0)
{
c++;
}
printf("6.....");
scanf("%c",&a);
if(strcmp(a,'y')==0)
{
c++;
}
printf("7.....");
scanf("%c",&a);
if(strcmp(a,'y')==0)
{
c++;
}
printf("8.....");
scanf("%c",&a);
if(strcmp(a,'y')==0)
{
c++;
}
printf("9.....");
scanf("%c",&a);
if(strcmp(a,))
printf("10.....");
scanf("%c",&a);