Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- struct tamgiac
- {
- float a,b,c;
- } tg;
- void main(){
- float tong;
- printf("Nhap 3 cach trong tam giac: ");
- scanf("%f%f%f",&tg.a,&tg.b,&tg.c);
- tong = tg.a + tg.b + tg.c;
- printf("Tong 3 canh la %f",tong);
- }
Advertisement
Add Comment
Please, Sign In to add comment