//Bài 1: Viết chương trình nhập vào một số x bất kỳ và in ra giá trị x2, x3, x4
#include <stdio.h>
#include <math.h>
int main() {
int x, x2, x3, x4;
printf("Nhap vao mot so x: "); printf("Gia tri x^2 la: %.d\n", x2
); printf("Gia tri x^3 la: %.d\n", x3
); printf("Gia tri x^4 la: %.d\n", x4
);
return 0;
}
Ly9Cw6BpIDE6IFZp4bq/dCBjaMawxqFuZyB0csOsbmggbmjhuq1wIHbDoG8gbeG7mXQgc+G7kSB4IGLhuqV0IGvhu7MgdsOgIGluIHJhIGdpw6EgdHLhu4sgeDIsIHgzLCB4NAojaW5jbHVkZSA8c3RkaW8uaD4KI2luY2x1ZGUgPG1hdGguaD4KCmludCBtYWluKCkgewogICAgaW50IHgsIHgyLCB4MywgeDQ7CiAgICBwcmludGYoIk5oYXAgdmFvIG1vdCBzbyB4OiAiKTsKICAgIHNjYW5mKCIlZCIsICZ4KTsKICAgIHgyID0gcG93KHgsIDIpOwogICAgeDMgPSBwb3coeCwgMyk7CiAgICB4NCA9IHBvdyh4LCA0KTsKICAgIHByaW50ZigiR2lhIHRyaSB4XjIgbGE6ICUuZFxuIiwgeDIpOwogICAgcHJpbnRmKCJHaWEgdHJpIHheMyBsYTogJS5kXG4iLCB4Myk7CiAgICBwcmludGYoIkdpYSB0cmkgeF40IGxhOiAlLmRcbiIsIHg0KTsKCiAgICByZXR1cm4gMDsKfQo=