Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if (userInput == 'c' || userInput == 'C') {
- float userInputCredits = 0.0;
- printf("Plesae enter min number of credits: ");
- scanf("%f", &userInputCredits);
- float credits = 0.0;
- while (courses[index]!=-1) {
- credits = ((courses[index]>>1) & 7) + (courses[index] & 1)/10.0;
- if (credits >= userInputCredits) {
- getListing(courses[index]);
- }
- index++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement