▼ กำลังโหลดข้อมูล... ▼
แสดงความคิดเห็น
คุณสามารถแสดงความคิดเห็นกับกระทู้นี้ได้ด้วยการเข้าสู่ระบบ
กระทู้ที่คุณอาจสนใจ
อ่านกระทู้อื่นที่พูดคุยเกี่ยวกับ
วิศวกรรมคอมพิวเตอร์
วิทยาศาสตร์คอมพิวเตอร์
C++
C (ภาษาคอมพิวเตอร์)
การพัฒนาซอฟต์แวร์
ผมเป็นนักศึกษา covid19 ไม่ค่อยเข้าใจในการเขียนโปรเเกรม c++ ช่วยผมด้วย !
#include <iostream>
using namespace std;
int main(){
double a;
double b;
double c;
double d;
double e;
double f;
a=699;
b=899;
c=1099;
d=1299;
e=1499;
f=1899;
double a_699;
double b_899;
double c_1099;
double d_1299;
double e_1499;
double f_1899;
a_699=350;
b_899=500;
c_1099=650;
d_1299=850;
e_1499=1200;
f_1899=2000;
cout <<"price" <<a<<endl;
cout <<"price" <<b<<endl;
cout <<"price" <<c<<endl;
cout <<"price" <<d<<endl;
cout <<"price" <<e<<endl;
cout <<"price" <<f<<endl;
return 0;
}