Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class Q4 {
- public static void main(String[] args) {
- Scanner s = new Scanner(System.in);
- System.out.println("enter serial number of the sanck: ");
- int serial = s.nextInt();
- System.out.println("enter calories amount: ");
- int cal = s.nextInt();
- System.out.println("fat weight of the snack: ");
- int fat = s.nextInt();
- if(cal<130 && fat<5)
- System.out.println("its a healty snack");
- else
- System.out.println("its not a healty snack");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement