Problem with mathamatical operations
I wrote the following Program for calculating Amount and S.I. 10 times but I Keep getting incorrect negative answers
1 2 3 4 5 6 7 8 9
|
for(x=1;x<=10;x++)
cin>>P>>T>>R;
SI = (P*R*T)/100
cout<<SI;
A=SI+P;
cout<<A;
}
getch();
}
|
What are the P, T, and R values that give you negative SI values?
And what are types of all variables?
Topic archived. No new replies allowed.