close

ClockHands.bmp 

#include <iostream>
int main()
{
 int h,m;
 float a;
 while(1)
 { 
  scanf("%d:%d",&h,&m);
  if(h==0 && m==0) break;
  a=5.5*m-30*h;
  if(a<0) a=-a;
  printf("%.2f\n",a>180? 360-a : a);
 }  
 return system("pause");
}

ClockHands..bmp 

 

 

 

 

 

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 LawlietMoon 的頭像
    LawlietMoon

    iPaSsioN sTuDio新世界:雜草魂 生命力

    LawlietMoon 發表在 痞客邦 留言(0) 人氣()