#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
int shouhin[100][2];
int shurui;
int goukei;
int i;
for (i = 0; i < shurui; i++) {
printf("%3d: 商品の価格 購入した個数=\n", i
+ 1); scanf("%d%d", &shouhin
[i
][0], &shouhin
[i
][1]); }
goukei = 0;
for (i = 0; i < shurui; i++) {
printf("%3d: 価格=%d 個数=%d\n", i
+ 1, shouhin
[i
][0], shouhin
[i
][1]); goukei += shouhin[i][0] * shouhin[i][1];
}
return 0;
}
I2RlZmluZSBfQ1JUX1NFQ1VSRV9OT19XQVJOSU5HUwojaW5jbHVkZSA8c3RkaW8uaD4KCmludCBtYWluKCkKewoJaW50CXNob3VoaW5bMTAwXVsyXTsKCWludAlzaHVydWk7CglpbnQJZ291a2VpOwoJaW50CWk7CgoJcHJpbnRmKCLllYblk4Hjga7nqK7poZ7jga7mlbA9XG4iKTsKCXNjYW5mKCIlZCIsICZzaHVydWkpOwoJZm9yIChpID0gMDsgaSA8IHNodXJ1aTsgaSsrKSB7CgkJcHJpbnRmKCIlM2Q6IOWVhuWTgeOBruS+oeagvCDos7zlhaXjgZfjgZ/lgIvmlbA9XG4iLCBpICsgMSk7CgkJc2NhbmYoIiVkJWQiLCAmc2hvdWhpbltpXVswXSwgJnNob3VoaW5baV1bMV0pOwoJfQoKCWdvdWtlaSA9IDA7Cglmb3IgKGkgPSAwOyBpIDwgc2h1cnVpOyBpKyspIHsKCQlwcmludGYoIiUzZDog5L6h5qC8PSVkIOWAi+aVsD0lZFxuIiwgaSArIDEsIHNob3VoaW5baV1bMF0sIHNob3VoaW5baV1bMV0pOwoJCWdvdWtlaSArPSBzaG91aGluW2ldWzBdICogc2hvdWhpbltpXVsxXTsKCX0KCXByaW50Zigi5ZCI6KiI6YeR6aGNPSVkXG4iLCBnb3VrZWkpOwoJcmV0dXJuIDA7Cn0K