Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- การบ้านหน้า 52
- ข้อ 13.
- public static void main(String[] args) {
- double x =7;
- double total = 4*(x*x*x) + 3*(x*x) + 2*x + 1;
- System.out.println("4x^3 + 3x^2 + 2X + 1 ="+ total);
- }
- ---------------
- ข้อ 14.
- public class TimeCal {
- public static void main(String[] args) {
- double time1h =1;
- double time2h =2;
- double time3h =3;
- double min2 =30;
- double min3 =59;
- double sum1 =time1h*60 ;
- double sum2 =time2h*60 + min2 ;
- double sum3 =time3h*60 + min3 ;
- System.out.println("Please Chang hr to min following chioce");
- System.out.println("1. 1Hr ="+sum1);
- System.out.println("2. 2Hr 30min =" +sum2);
- System.out.println("2. 3Hr 59min =" +sum3);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement