#include <stdlib.h>
#include <stdio.h>
#define ROWS 10 /* number of rows in array */
#define COLUMNS 2 /* number of columns in array */
void main()
{
float agents ;
char strtmp ;
int index=0, outdex ;
printf("Enter 3-digit agent numbers,\n") ;
printf("then travel expenses (007 1642.50)\n") ;
printf("Enter 0 0 to quit.\n") ;
do /* get list of agents and expenses */
{
printf("Agent's number and expense: ");
scanf("%f %f", &agents, &agents);
}
while ( agents != 0 ) ;
for (outdex=0; outdex<index-1; o ..
访客只能看到部份内容,免费 加入会员 或由脸书 Google 可以看到全部内容