Advertisement
MUstar

IoT C언어 0419 - 새우2

Apr 19th, 2017
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.30 KB | None | 0 0
  1. #include <stdio.h>
  2. int main(void)
  3. {
  4.     double m,f=300,mp;
  5.     printf("현재 존제하는 수컷의 몇마리? : ");
  6.     scanf("%lf", &m);
  7.     mp = m/f;
  8.     if(mp>=0.7) {printf("암수조정이 필요합니다.%lf\n",mp); return 0;}
  9.     else {printf("참평화로운 그곳.%lf\n",mp); return 0;}
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement