Question: 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

So this is my C language code: #include int main(){ int n,c1=0,c2=0;

Please add the last part where Nobody Wins. ASAP.

Thank you so much in advance..

Your code must pass all tests to earn any marks. Try again

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!