//Author:Potnuru SravanKumar
//ID:N190341
//Class:Cse-02
#include<stdio.h>
#include<stdlib.h>
void floor(char []);
void ceil(char []);
int main()
{
char s[10];
int choice;
printf("enter the number:");
scanf("%s",s);
while(1)
{
printf("enter 1(floor value),2(celing value) and 3(exit):");
scanf("%d",&choice);
switch(choice)
{
case 1:
floor(s);
break;
case 2:
ceil(s);
break;
case 3:
exit(0);
}
}
}
void floor(char s[])
{
printf("%c\n",s[0]);
}
void ceil(char s[])
{
printf("%c\n",s[0]+1);
}