Code:
#include<stdio.h>
#include<string.h>
int main(){
int n,k;
scanf("%d",&n);
k=n%8;
if(k==1 || k==4)
printf("Lower");
if(k==2 || k==5)
printf("Middle");
if(k==3 || k==6)
printf("Upper");
if (k==0)
printf("Side Upper");
if(k==7)
printf("Side Lower");
return 0;
}
No comments