j

Monday, 2 November 2015

Write a program that take total number of student of a class, and monthly per student fee and then calculates the whole class annual fee

#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
long int tot_student,ps_fee,annual_fee,month_fee;
cout<<"Enter total number of student ::";
cin>>tot_student;
cout<<"Enter per student annual fees ::";
cin>>ps_fee;
month_fee=tot_student*ps_fee;
annual_fee=month_fee*12;
cout<<"Whole class annual fee is "<<annual_fee;
getch();
}

Subscribe to this Blog via Email :