Paste
Pasted as C++ by registered user xujiayu ( 5 years ago )
#include<stdio.h>
#include<conio.h>
int main()
{
//bai tap 2 : nhap 2 so a va b tinh tong hieu tich thuong cua 2 so do .
int a,b;
a=8,b=5;
int tong ,hieu ,tich;
float thuong;
tong= a+b;
hieu= a-b;
tich= a*b;
thuong= (float)a/b;
printf("\ntinh tong hieu tich thuong cua 2 so a,b");
printf("\n%d + %d = %d",a,b,tong);
printf("\n%d - %d = %d",a,b,hieu);
printf("\n%d * %d = %d",a,b,tich);
printf("\n%d / %d = %f",a,b,thuong);
getch();
return 0;
}
Revise this Paste