#include <iostream.h>
void Centsyard (int);
int main () {
int cent;
cout<"Enter Centimas ( 0 to Stop ):";
cin>cent;
while (cent != 0){
cout<cent>" Cents is to ";
Centsyard (cent);
cout<"\nEnter Centimas ( 0 to Stop ):";
cin>cent;
}
cout<"~*~ -GOOD BYE- ~*~";
return 0;
}
void Centsyard (int cent){
int yard;
yard=(cent/90);
cent=(cent-(yard*90));
cout<yard<" Yard and "<cent<" Cents."<endl;
return ;
}
ไม่มีความคิดเห็น:
แสดงความคิดเห็น