B2: Write a program to accept 2 numbers and tell whether the product of the two numbers is equal to or greater than 1000.
B3: Write a program to accept 2 numbers. Calculate the difference between the two values. If the difference is equal to any of the values entered, then display the following message
Difference is equal to value <number of value entered>
If the difference is not equal to any of the values entered, display the following message:
Difference is not equal to any of the values entered
B4: Write a program to evaluate the Grade of a student for the following constraints:
If marks >75 – grade A
If 60< marks < 75 – grade B
If 45<marks<60 – grade C
If 35<marks<45 - grade D
If marks < 35 – grade E
1 số dấu đặc biệt :
% : chia lấy dư.
&& ; và.
== ; so sánh, có bằng hay ko.
>= ; lớn hơn hoặc bằng.
|| : hoặc.
Không có nhận xét nào:
Đăng nhận xét