Ask your own question, for FREE!
Computer Science 14 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!
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!