#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 可以看到全部內容