Write a program which will find the division from a average grade obtained by a student by using switch case in C
#include<stdio.h>
#include<conio.h>
main()
{
char ch;
scanf("%c",&ch);
switch (ch)
{
case 'A':
printf("1st division");
break;
case 'B':
printf("2nd division");
break;
case'C':
printf("3rd division");
break;
}
return 0;
}
#include<stdio.h>
#include<conio.h>
main()
{
char ch;
scanf("%c",&ch);
switch (ch)
{
case 'A':
printf("1st division");
break;
case 'B':
printf("2nd division");
break;
case'C':
printf("3rd division");
break;
}
return 0;
}
No comments:
Post a Comment