Dek-D.com ใช้คุกกี้เพื่อพัฒนาประสบการณ์ของ
ผู้ใช้ให้ดียิ่งขึ้น เรียนรู้เพิ่มเติมที่นี่
ยอมรับ

เขียนโปรแกรม Dev-C++ 4.9.9.2

ตั้งกระทู้ใหม่
ตั้งกระทู้ใหม่
#include <cstdlib>
#include <iostream>
#include <math.h>
using namespace std;
int main(int argc, char *argv[])
{   int x;
    int y;
    int z;
    float ans;
    cout << "input x = "
    cin >> x;
    cout << "input y = "
    cin >> y;
    cout << "input z = "
    cin >> z;
    ans = pow(x,2)*pow(z,5)/pow(y,4)
    cout << "answer = " << ans << "n\"
    system("PAUSE");
    return EXIT_SUCCESS;

 cin >> x; กด F9 แล้วมันผิดง้า ผิดตรงไหน TT 

แสดงความคิดเห็น

>

2 ความคิดเห็น