Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int enterArraySubMenu(unsigned int array[], int arrayLength)
- {
- if(arrayLength < 10)
- {
- for(arrayLength; arrayLength < 10; arrayLength++)
- {
- printf("\n\tEnter value # %d: ", arrayLength + 1);
- unsigned int scannedValue;
- scanf(" %u", &scannedValue);
- if (scannedValue == 0)
- {
- return arrayLength;
- }
- array[arrayLength] = scannedValue;
- }
- }
- else{
- printf("\n\tData set is full, to input new numbers, please reset it using (r) from the main menu\n\n");
- }
- return arrayLength;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement