Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

6th Edition

1943153035, 978-1943153039

More Books

Students also viewed these Databases questions

Question

What perspective or approach to talent would be appropriate?

Answered: 1 week ago

Question

What policies and practices for talent development are needed now?

Answered: 1 week ago