Albert3069

7 weeks project (2) - 202007032 최윤솔

May 3rd, 2020
323
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     int tall;
  6.     int age;
  7.    
  8.     printf("키와 나이를 입력하십시오.\n");
  9.     scanf("%d %d", &tall, &age);
  10.    
  11.     if(tall >= 140 && age >= 10)
  12.     {
  13.         printf("타도 좋습니다.");
  14.     }
  15.     else
  16.     {
  17.         printf("죄송합니다.");
  18.     }
  19.    
  20.     return 0;
  21.  }
RAW Paste Data