Instruction: Using conditional statements, looping and functions, write an INTERACTIVE PROGRAM on BODY SYSTEMS. Each student must have two questions about the BODY SYSTEM.
Sample Output
Select Body System:
Enter Number of Body System: 1
Output:
Questions For Respiratory System:
Enter Number of Question: 1
Output:
Question 1:
Sample Question 1
Answer 1:
Sample Answer 1
#include <iostream>
using namespace std;
int main() {
int number;
cout << "Enter an integer: ";
cin >> number;
if (number >= 0) {
cout << "You entered a positive integer: " << number << endl;
} else {
cout << "You entered a negative integer: " << number << endl;
}
cout << "This line is always printed.";
return 0;
}
Comments
Leave a comment