#include<stdio.h> int main() { int n,k=0,t; float m; while(scanf("%d",&n)!=EOF) { if(n<=3) t=5; else { m=(n-3)*1.5+5; t=m; if((m-t)>=0.5) t+=1; } k++; printf("Case #%d: %d\n",k,t); } return 0; }
Double click to view unformatted code.