Answered step by step
Verified Expert Solution
Question
1 Approved Answer
So this is my C language code: #include int main(){ int n,c1=0,c2=0; scanf(%d,&n); do{ if(n==1) c1++; else c2++; scanf(%d,&n); }while(n!=0); printf(Team 1 score: %d ,c1);
So this is my C language code:
#include
int main(){ int n,c1=0,c2=0; scanf("%d",&n); do{ if(n==1) c1++; else c2++; scanf("%d",&n); }while(n!=0); printf("Team 1 score: %d ",c1); printf("Team 2 score: %d ",c2); if(c1>c2) printf("Team 1 Won!!!"); else if(c1 Please add the last part where Nobody Wins. ASAP. Thank you so much in advance..
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started