hi,GUYS!
i have a problem with this c++ coding........
why i have an error when i compile it?
and why it didn't give me the correct output?
as such PISAS=ISAS/100*30
if let say, ISAS is 50/100*30..... it should store the output of 15 in the PISAS Variable. why it didn't? plsssss help...urgent!!!
here is the code!!!
#include<iostream.h>
void main()
{
Char cReply;
Char Studentname;
int MT1; int PMT1;
int ISAS; int PISAS;
int MT2; int PMT2;
int PROJECT; int PPROJECT;
int 100=100; int 30=30;
do
{
cout<<"Enter Student Name";
cin>>Studentname;
cout<<"Enter MT1 Marks";
cin>>MT1;
cout<<"Enter ISAS Marks";
cin>>ISAS;
cout<<"Enter MT2 Marks";
cin>>MT2;
cout<<"Enter PROJECT Marks";
cin>>PROJECT;
PMT1=MT1/100*30;
cout<<"The Percentage of MT1 is"<<PMT1<<endl;
PISAS=ISAS/100*30;
cout<<"The Percentage of ISAS is"<<PISAS<<endl;
PMT2=MT2/100*30;
cout<<"The Percentage of MT2 is"<<PMT2<<endl;
PPROJECT=PROJECT/100*30;
cout<<"The Percentage of Project is"<<PPROJECT<<endl;
cout<<"Do you want to input another Student(y/n)";
cin>>cReply;
}while(cReply! > 'n' && cReply != 'N' );
}



LinkBack URL
About LinkBacks


