goldshakil / ElectricalProgrammingCourse2020

This repository is aimed towards sharing and discussing issues about Electrical and Electronics Programming Course
6 stars 1 forks source link

Practice Session 9 #Q.2 #249

Open pepsi1234 opened 4 years ago

pepsi1234 commented 4 years ago

can i input the bags array continuous like 1271?

goldshakil commented 4 years ago

I prefer not.

Just work with integers

pepsi1234 commented 4 years ago

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?

goldshakil commented 4 years ago

you can use for loop + scanf