I have my code working how it should except when the first and second word begin the same. For example,
if the input is> abc def abcdef
the final output should be> def def abcdef
What it's...
Type: Posts; User: webbizdesign
I have my code working how it should except when the first and second word begin the same. For example,
if the input is> abc def abcdef
the final output should be> def def abcdef
What it's...
I'm having trouble with the function 'replace' in my program. The program is supposed to work where the user enters a string of 2 or more words. It first checks to how many times the 1st word is...
how would I do that?:confused:
I have 2 constant arrays
int set1[10] = {1,2,3,4,5,6,7,8,9,10};
int set2[5] = {2,4,7,9,11};
I need to compute their union, difference, and intersection.
The union works fine. For some reason,...
I'm trying to get the program to print the union between sets 1 and 2. The union would be the set of all elements in both set1 or set2.
#include <stdio.h>
void Set_print(int a[], int n,...
this is what I have so far. I'm not getting all possible combinations.
#include <stdio.h>
main()
I have to design a program where
input > any positive integer
output > all combos of 3 integers whose sum add up to input
using 3 nested for loops, number1 <= number2 <= number3 and number1,...