Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- char blood;
- printf("blood group=");
- scanf(" %c",&blood);
- if(blood=='A'||blood=='B'||blood=='C'||blood=='O')
- {
- char B;
- printf("Is it Negative or Positive");
- scanf(" %c",&B);
- if(B=='+')
- {
- printf("%c is positive",blood);
- }
- else if(B=='-')
- {
- printf("%c is negative",blood);
- }
- else
- {
- printf("beshi pakna");
- }
- }
- else
- {
- printf("danger,run!");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment