//This is a program to display the designation(Post)
#include<stdio.h>
#include<conio.h>
void main()
{
char code;
printf("\n\nDesignation Character:");
printf("\n\n1.Manager - M");
printf("\n\n2.Supervisior - S");
printf("\n\n3.Clerk - C");
printf("\n\n4.Worker - W");
printf("\n\nEnter the Employee Code: ");
scanf("%c",&code);
if(code=='M')
{
printf("\n\nYou are Manager");
}
else if(code=='S')
{
printf("\n\nYou are Supervisior");
}
else if(code=='C')
{
printf("\n\nYou are Clerk");
}else if(code=='W')
{
printf("\n\nYou are Worker");
}
else
{
printf("\n\nWrong Code");
}
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
char code;
printf("\n\nDesignation Character:");
printf("\n\n1.Manager - M");
printf("\n\n2.Supervisior - S");
printf("\n\n3.Clerk - C");
printf("\n\n4.Worker - W");
printf("\n\nEnter the Employee Code: ");
scanf("%c",&code);
if(code=='M')
{
printf("\n\nYou are Manager");
}
else if(code=='S')
{
printf("\n\nYou are Supervisior");
}
else if(code=='C')
{
printf("\n\nYou are Clerk");
}else if(code=='W')
{
printf("\n\nYou are Worker");
}
else
{
printf("\n\nWrong Code");
}
getch();
}