#include <stdio.h>
int main(void) {
// your code goes here
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CgkvLyB5b3VyIGNvZGUgZ29lcyBoZXJlCglyZXR1cm4gMDsKfQo=
dXNpbmcgU3lzdGVtOwoKY2xhc3MgUHJvZ3JhbQp7CiAgICBzdGF0aWMgdm9pZCBNYWluKHN0cmluZ1tdIGFyZ3MpCiAgICB7CiAgICAgICAgLy8g4Lib4Lij4Liw4LiB4Liy4Lio4LiV4Lix4Lin4LmB4Lib4Lij4Liq4Liz4Lir4Lij4Lix4Lia4LmA4LiB4LmH4Lia4LiC4LmJ4Lit4Lih4Li54LilCiAgICAgICAgc3RyaW5nIG51bWJlciwgY29kZSwgbW92aWVOYW1lOwogICAgICAgIGludCBxdWFudGl0eTsKICAgICAgICBkb3VibGUgcHJpY2UsIHRvdGFsOwoKICAgICAgICAvLyDguKPguLHguJrguITguYjguLLguILguYnguK3guKHguLnguKXguIjguLLguIHguJzguLnguYnguYPguIrguYkKICAgICAgICBDb25zb2xlLldyaXRlTGluZSgmcXVvdDsqKioqKioqKioqKioqKioqKioqKioqKioqKioqJnF1b3Q7KTsKICAgICAgICBDb25zb2xlLldyaXRlTGluZSgmcXVvdDtQcm9ncmFtIFZpZGVvJnF1b3Q7KTsKICAgICAgICBDb25zb2xlLldyaXRlTGluZSgmcXVvdDsqKioqKioqKioqKioqKioqKioqKioqKioqKioqJnF1b3Q7KTsKCiAgICAgICAgQ29uc29sZS5Xcml0ZSgmcXVvdDtOdW1iZXIgICAgICA9ICZxdW90Oyk7CiAgICAgICAgbnVtYmVyID0gQ29uc29sZS5SZWFkTGluZSgpOwoKICAgICAgICBDb25zb2xlLldyaXRlKCZxdW90O0NvZGUgICAgICAgID0gJnF1b3Q7KTsKICAgICAgICBjb2RlID0gQ29uc29sZS5SZWFkTGluZSgpOwoKICAgICAgICBDb25zb2xlLldyaXRlKCZxdW90O01vdmllIE5hbWUgID0gJnF1b3Q7KTsKICAgICAgICBtb3ZpZU5hbWUgPSBDb25zb2xlLlJlYWRMaW5lKCk7CgogICAgICAgIENvbnNvbGUuV3JpdGUoJnF1b3Q7UXVhbnRpdHkgICAgPSAmcXVvdDspOwogICAgICAgIHF1YW50aXR5ID0gaW50LlBhcnNlKENvbnNvbGUuUmVhZExpbmUoKSk7CgogICAgICAgIENvbnNvbGUuV3JpdGUoJnF1b3Q7UHJpY2UgICAgICAgPSAmcXVvdDspOwogICAgICAgIHByaWNlID0gZG91YmxlLlBhcnNlKENvbnNvbGUuUmVhZExpbmUoKSk7CgogICAgICAgIC8vIOC4hOC4s+C4meC4p+C4k+C4nOC4peC4o+C4p+C4oQogICAgICAgIHRvdGFsID0gcXVhbnRpdHkgKiBwcmljZTsKCiAgICAgICAgLy8g4LmB4Liq4LiU4LiH4Lic4Lil4Lil4Lix4Lie4LiY4LmMCiAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUoJnF1b3Q7KioqKioqKioqKioqKioqKioqKioqKioqKioqKiZxdW90Oyk7CiAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUoJnF1b3Q7VG90YWwgICAgICAgPSAmcXVvdDsgKyB0b3RhbCk7CiAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUoJnF1b3Q7KioqKioqKioqKioqKioqKioqKioqKioqKioqKiZxdW90Oyk7CgogICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKCZxdW90O1ByZXNzIGFueSBrZXkgdG8gZXhpdC4uLiZxdW90Oyk7CiAgICAgICAgQ29uc29sZS5SZWFkS2V5KCk7CiAgICB9Cn0K
using System;
class Program
{
static void Main(string[] args)
{
// ประกาศตัวแปรสำหรับเก็บข้อมูล
string number, code, movieName;
int quantity;
double price, total;
// รับค่าข้อมูลจากผู้ใช้
Console.WriteLine("****************************");
Console.WriteLine("Program Video");
Console.WriteLine("****************************");
Console.Write("Number = ");
number = Console.ReadLine();
Console.Write("Code = ");
code = Console.ReadLine();
Console.Write("Movie Name = ");
movieName = Console.ReadLine();
Console.Write("Quantity = ");
quantity = int.Parse(Console.ReadLine());
Console.Write("Price = ");
price = double.Parse(Console.ReadLine());
// คำนวณผลรวม
total = quantity * price;
// แสดงผลลัพธ์
Console.WriteLine("****************************");
Console.WriteLine("Total = " + total);
Console.WriteLine("****************************");
Console.WriteLine("Press any key to exit...");
Console.ReadKey();
}
}