#include <stdio.h>
int main() {
int quantity;
float price, total;
// Input quantity
scanf("%d", &quantity);
// Input price per item
printf("Enter price per item: "); scanf("%f", &price);
// Calculate total
total = quantity * price;
// Output total
printf("Total price = %.2f\n", total
);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKICAgIGludCBxdWFudGl0eTsKICAgIGZsb2F0IHByaWNlLCB0b3RhbDsKCiAgICAvLyBJbnB1dCBxdWFudGl0eQogICAgcHJpbnRmKCJFbnRlciBxdWFudGl0eTogIik7CiAgICBzY2FuZigiJWQiLCAmcXVhbnRpdHkpOwoKICAgIC8vIElucHV0IHByaWNlIHBlciBpdGVtCiAgICBwcmludGYoIkVudGVyIHByaWNlIHBlciBpdGVtOiAiKTsKICAgIHNjYW5mKCIlZiIsICZwcmljZSk7CgogICAgLy8gQ2FsY3VsYXRlIHRvdGFsCiAgICB0b3RhbCA9IHF1YW50aXR5ICogcHJpY2U7CgogICAgLy8gT3V0cHV0IHRvdGFsCiAgICBwcmludGYoIlRvdGFsIHByaWNlID0gJS4yZlxuIiwgdG90YWwpOwoKICAgIHJldHVybiAwOwp9