#include <stdio.h>
int main(void)
{
int choice, i;
double price;
for(i = 1; i <= 5; i++)
{
printf("[1] apples ");
printf("[2] pears ");
printf("[3] oranges ");
printf("[4] grapes ");
printf("[0] Exit ");
scanf("%d", &choice);
if(choice == 0)
break;
else{
if(choice ==1 )
price=3.00;
else if(choice ==2 )
price=2.5;
else if(choice ==3 )
price=4.1;
else if(choice ==4 )
price=10.2;
if(i==5) break;
printf("price = %0.1f ", price);
}
}
}