30-06-2012, 01:48 PM
quyentb
Thành Viên SVIT
Được cảm ơn 0 trong 0 bài viết
Đã viết 5 bài thảo luận
360 lượt xem
#1
giup m bai C nay voi moi ng oi
moi ng xem jum code voi nhat la lenh switch m ko hju no co van de j o day nua.thank nha
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
main()
{
double income,p;
printf("your income:",income);
scanf("%lf",&income);
p=0.05*income;
main()
char health;
printf("health insurance 5%% (a/b):",health);
scanf("%c",&health);
switch (health){
case 'a' :
printf("health insurance= %lf",p);
break;
case 'b' :
printf("health insurance= 0");
break;
}
getch();
}
Chủ đề mới cùng chuyên mục
30-06-2012, 01:56 PM
nhoveai
Thành Viên SVIT
Được cảm ơn 89 trong 75 bài viết
Đã viết 732 bài thảo luận
#2
giup m bai C nay voi moi ng oi
sai code rồi char health; là gì thế bác
http://data.sinhvienit.net/2012/T08/img/SinhVienIT.NET---troll-face-psd62868-copy.jpg