Look at the program below and answer the following questions:
1. Import.java.util.scaneer”
2. public class Positive Negative Example
3. { public static void main(String args[]);
4. { if(number>0);
5. { System.out.println("POSITIVE"):
6. }
7. else if(number<0);
8. {
9. System.out.println("NEGATIVE");
10. }
11. else
12. {
13. System.out.println("ZERO");
14. } } }
1. The above written program falls in the category of : if-else or if-else-if?
2.Highlight the error in the above program.(any 4)
Answers
Answered by
0
Answer:
negative if corona test became negative
positive if corona test became positive
if right please make it brain list answer
Similar questions
English,
17 days ago
Math,
1 month ago
Environmental Sciences,
1 month ago
Accountancy,
9 months ago
English,
9 months ago