#include <stdio.h>
int main (void)
{
int dollars, cents, count;
for ( count = 1; count <= 10; ++count ) {
printf ("Enter dollars: ");
scanf ("%i", &dollars);
printf ("Enter cents: ");
scanf ("%i", ¢s);
printf ("$%i.%.2i/n/n", dollars, cents);
}
return 0;
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266473.html