Open pepsi1234 opened 4 years ago
I prefer not.
Just work with integers
if so, in practice 2, i input number of bags, and i cannot make code like scanf_s("%d %d %d %d ......",&arr[0],&arr[1],&arr1[2],&arr1[3].......) to input number of chocolates in each bag. can i input number of chocolates in each bag discretely with for loop and scanf_s? or should i use other function?
you can use for loop + scanf
can i input the bags array continuous like 1271?