- Jump To Level 1 Multiple Integers Are Read And Inserted Into A Linked List Of Falconnodes For Each Integer Greater Than 1 (36.58 KiB) Viewed 21 times
Jump to level 1 Multiple integers are read and inserted into a linked list of FalconNodes. For each integer greater than
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Jump to level 1 Multiple integers are read and inserted into a linked list of FalconNodes. For each integer greater than
Jump to level 1 Multiple integers are read and inserted into a linked list of FalconNodes. For each integer greater than or equal to 4 in the linked list of FalconNodes, print the integer followed by " is a lot of falcons" on a new line. Ex: If the input is 1 5, then the output is: 5 is a lot of falcons 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 cin >> count; headFalcon = new FalconNode (count); lastFalcon = headFalcon; for (i = 0; i < count; ++i) { cin >> inputValue; currFalcon = new FalconNode (inputValue); lastFalcon->InsertAfter (currFalcon); lastFalcon = currFalcon; /* Your code goes here */ return 0; 1 2 3 ✓