write c++ program to input a student type ('A' or 'B'). if a student type is 'A' initialize the college account Rs.200/- otherwise initialize the hostel account rs.200/-?
1
Expert's answer
2012-10-09T09:20:31-0400
include<stdio.h> #include<conio.h> void main() { clrscr(); char x; printf("Enter the category of student: A or B "); scanf("%c",&x); if(x=='A') { int college = 200; printf(" Amount initialized to college account "); printf("Amount added to college account = %d",college); } else if(x=='B') { int hostel = 200; printf(" Amount initialized to hostel account "); printf("Amount added to hostel account = %d",hostel); } getch(); }
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment