#include <stdio.h>#include<math.h>int main(){ int h,m; scanf("%d %d",&h,&m); if(h>=0 && h<6) { printf("Night\n"); } else if(h>=6 && h<12) { printf("Morning\n"); } else if( h>=12 && h<18) { printf("Afternoon\n"); } else if(h>=18 && h<24) { printf("Evening\n"); } return 0;}
No comments