The C++ program in Program Q1 will not compile because the lines have been mixed up. Program Q1 cout << "Melaka\n"; cout
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
The C++ program in Program Q1 will not compile because the lines have been mixed up. Program Q1 cout << "Melaka\n"; cout
The C++ program in Program Q1 will not compile because the lines have been mixed up. Program Q1 cout << "Melaka\n"; cout << " Melaka\n\n"; int main() cout << "Melaka"; using namespace std; //This is a mixed program #include<iostream> cout << "Melaka\n"; { return 0; } Rearrange the lines in Program Q1 in the correct order, to display the output on the screen when running it on the DEVC++ IDE as shown in Figure Q1. OUTPUT CONSOLE Х Melaka Melaka Melaka Melaka Figure Q1
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!