#include <stdio.h>
typedef struct {
int value;
int count;
} FRUIT;

int moon(FRUIT object)
{
return object.value * object.count;
}

int main(void)
{
FRUIT apple, orange;

printf("りんごが何個何円= ");
scanf("%d %d", &apple.value, &apple.count);

printf("みかんが何個何円= ");
scanf("%d %d", &orange.value, &orange.count);

printf("りんごの総額、みかんの総額=(%d,%d\n)", moon(apple), moon(orange));

return 0;
}