Question: Please write a Java program Task 2: Football Event On the 1st of August, a football match was held in Abu Dhabi. Team A scored
Please write a Java program
Task 2: Football Event On the 1st of August, a football match was held in Abu Dhabi. Team A scored 4 goals and Team B scored 2 goals. Assign the goals to the respective team and print their goal scores. - Step 1: Declare the variables. - How many variables will you declare? Mention those variables. - What will be the data type? - Step 2: Assign the declared variables to the scores. - Which operator will you use to assign? - Step 3: Team B got an additional score. Use the increment operator to find the new score for Team B. - Step 4: Print the goal score for each team. - Write the statement for printing the output in the console. Write a program to assign the goals to the respective team and print their goal scores. Xxpected Output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
