Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

2. Two football teams, C and F, play against each other and have their final sco

ID: 3870674 • Letter: 2

Question


2. Two football teams, C and F, play against each other and have their final scores saved in variables scoreC and scoref respectively. Write the code segment that compares these two score totals and prints a message stating whether C won the game, F won the game, or whether the game was tied h"ng t "u iar ge· wh, non th, is ama Write a valid C statement to check if a user's input value is in the range of 70 and 80, inclusive. Display a message stating if it is range or not. in( { ur, vr.encl peint 3. 80100

Explanation / Answer

2. if(scoreC==scoreF)
printf("Game was tied");
else if(scoreC>scoreF)
printf("C won the game");
else
printf("F won the game");

3.

#include<stdio.h>

int main()
{
int n;
scanf("%d",&n);
  
if(n>=70&&n<=80)
printf("IN RANGE");
else
printf("OUT OF RANGE");
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote