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 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
Get step-by-step solutions from verified subject matter experts
