#include main() { char type; int size; float disc,sp,total; clrscr(); printf("Enter the type of T.V. 'c' for Color & 'b' for B&W: "); scanf("%c",&type); printf("Enter the selling price of T.V. :"); scanf("%f",&sp); if(type=='B' || type=='b') { disc=sp*0.05; total=sp-disc; printf("The total amount of T.V. is %f",total); } else if(type=='C' || type=='c') { printf("Enter the Size of Color T.V. ie. 14inch or 21inch: "); scanf("%d",&size); if(size==14) { disc=sp*0.08; total=sp-disc; printf("The total amount of T.V. is %f",total); } else if(size==21) { disc=sp*0.1; total=sp-disc; printf("The total amount of T.V. is %f",total); } else printf("Invalid size"); } else printf("Invalid type of T.V."); getch(); }