//Bài 3: Viết chương trình đọc và 2 số nguyên và in ra kết quả của phép (+), phép trừ (-), phép nhân (*), phép chia (/). Nhận xét kết quả chia 2 số nguyên.
#include <stdio.h>
int main( ) {
float a, b;
float tong = a + b;
printf ( "%.2f + %.2f = %.2f\n " , a
, b
, tong
) ; float hieu = a - b;
printf ( "%.2f - %.2f = %.2f\n " , a
, b
, hieu
) ; float tich = a * b;
printf ( "%.2f * %.2f = %.2f\n " , a
, b
, tich
) ; float thuong = a / b;
printf ( "%.2f / %.2f = %.2f\n " , a
, b
, thuong
) ;
return 0 ;
}
Ly9Cw6BpIDM6IFZp4bq/dCBjaMawxqFuZyB0csOsbmggxJHhu41jIHbDoCAyIHPhu5Egbmd1ecOqbiB2w6AgaW4gcmEga+G6v3QgcXXhuqMgY+G7p2EgcGjDqXAgKCspLCBwaMOpcCB0cuG7qyAoLSksIHBow6lwIG5ow6JuICgqKSwgcGjDqXAgY2hpYSAoLykuIE5o4bqtbiB4w6l0IGvhur90IHF14bqjIGNoaWEgMiBz4buRIG5ndXnDqm4uCiNpbmNsdWRlIDxzdGRpby5oPgoKaW50IG1haW4oKXsKICAgZmxvYXQgYSwgYjsKICAgcHJpbnRmKCJOaGFwIGdpYSB0cmkgYToiKTsKICAgc2NhbmYoIiVmIiwmYSk7CiAgIHByaW50ZigiTmhhcCBnaWEgdHJpIGI6Iik7CiAgIHNjYW5mKCIlZiIsJmIpOwoKICAgZmxvYXQgdG9uZyA9IGEgKyBiOwogICBwcmludGYoIiUuMmYgKyAlLjJmID0gJS4yZlxuIiwgYSwgYiwgdG9uZyk7CiAgIGZsb2F0IGhpZXUgPSBhIC0gYjsKICAgcHJpbnRmKCIlLjJmIC0gJS4yZiA9ICUuMmZcbiIsIGEsIGIsIGhpZXUpOwogICBmbG9hdCB0aWNoID0gYSAqIGI7CiAgIHByaW50ZigiJS4yZiAqICUuMmYgPSAlLjJmXG4iLCBhLCBiLCB0aWNoKTsKICAgZmxvYXQgdGh1b25nID0gYSAvIGI7CiAgIHByaW50ZigiJS4yZiAvICUuMmYgPSAlLjJmXG4iLCBhLCBiLCB0aHVvbmcpOwoKICAgcmV0dXJuIDA7Cgp9Cg==