Ask your own question, for FREE!
Computer Science 10 Online
OpenStudy (anonymous):

Hi umm can someone help me? I am currently working on a simple set operations program. I've done all the specifications and all I need to do now is to add 'commmas' to the output e.g. when the user inputted (a,b)U(b,c) the console will output (abc) my problem there is the addition of commas in between. i tried adding commas to the printfs' themselves but when I did, the result came out like this: (a,b,c,) So there. Thank you in advance. :))

OpenStudy (anonymous):

BTW, I'm using C language.

OpenStudy (rsmith6559):

if( ischar( answer[index] ) && ischar( answer[index+1] ) printf( "," );

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
Arriyanalol: i need help
19 hours ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
22 hours ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!