Question: can you add (or)to this program so that the program print red only once { if(strcmp(inputs[i].color,s1)==0) { printf(red ); } if(strcmp(inputs[i].color,s2)==0) { printf(red ); }
can you add (or)to this program so that the program print red only once
{ if(strcmp(inputs[i].color,"s1")==0) {
printf("red ");
}
if(strcmp(inputs[i].color,"s2")==0) {
printf("red ");
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
