Computer Applications
Kareena is writing a program in Java to calculate the average of three subjects. Which operators will she use for the same?
Java Intro
39 Likes
Answer
Kareena will use the addition operator (+) to first calculate the total marks obtained in all three subjects. After that, she will use the division operator (/) to divide the total marks by 3 to get the average.
Answered By
23 Likes
Related Questions
State whether the following statement is True or False :
While comparing two variables, their data types should not be the same.
Ritika has written a program in Java. After the successful compilation of her program, which option should she select to run it?
A .......... is a named location in the memory, which stores data temporarily.
What does OOP mean?