السلام عليكم
انا محتاجه لمساعدتكم ومشورتكم في برنامج
وهذا البرنامج يقوم بحساب راتب موظف
اذا تم ادخال 5389.75 لاصبح الراتب مكون من:
10ورقات من فئة 500 ريال
وورقتين من فئة 200 ريال
وورقة من فئة 100 ريال
وورقة من فئة 50 ريال
و4 ورقات من فئة 20 ريال
وورقة من فئة 5 ريال
و4 ورقات من فئة 1 ريال
وقطعة واحدة من فئة 50 هلله
وقطعة واحدمن فئة 25 هلله
وهذ كود البرنامج
=============================================
#include<iostream.h>
#include<conio.h>
int main()
{
int mon;
float n0, n1, n2, n3, n4, n5, n6, n7, n8, n9;
cout<<"Enter your money: ";
cin>>mon;
n0=mon/500;
n1=mon%500/200;
n2=mon%500%200/100;
n3=mon%500%200%100/50;
n4=mon%500%200%100%50/20;
n5=mon%500%200%100%50%20/10;
n6=mon%500%200%100%50%20%10/5;
n7=mon%500%200%100%50%20%10%5/1;
n8=mon%500%200%100%50%20%10%5%1/0.5;
n9=mon%500%200%100%50%20%10%5%1%0.5%0.25;
cout<<"\n "<<n0<<" pieces of paper from the 500 riyals.";
cout<<"\n "<<n1<<" pieces of paper from the 200 riyals.";
cout<<"\n "<<n2<<" pieces of paper from the 100 riyals.";
cout<<"\n "<<n3<<" pieces of paper from the 50 riyals.";
cout<<"\n "<<n4<<" pieces of paper from the 20 riyals.";
cout<<"\n "<<n5<<" pieces of paper from the 10 riyals.";
cout<<"\n "<<n6<<" pieces of paper from the 5 riyals.";
cout<<"\n "<<n7<<" pieces of paper from the 1 riyals.";
cout<<"\n "<<n8<<" pieces of paper from the 50 halala.";
cout<<"\n "<<n9<<" pieces of paper from the 25 halala.";
getch();
return 0;
[code]
========================
والمشكلة يطلع error ومو فاهمه على ايش الخطأ
واسفه على الاطاله