28. Blood bank

Image result for c programming
Code:
  #include<stdio.h>
int main(){
  int age,w;
  printf("Enter your Age:\n");
  scanf("%d",&age);
  printf("Enter your Weight:\n");
  scanf("%d",&w);
  if((age>18)&&(w>40))
    printf("Eligible to donate.");
  else
    printf("Not Eligible to donate.");
  return 0;
}

No comments