What is the output of the program?
#include <iostream>
using namespace std;
int main()
{
enum days
{
mon, tues, wed, thurs, fri,sat, sun
for (int num = mon; num <= sun; num++)
cout << num++ + (days (num));
return 0;
}
Answers
Answered by
0
Answer:
15913
Explanation:
Error in your code - correct code is
#include <iostream>
using namespace std;
int main()
{
enum days
{
mon, tues, wed, thurs, fri,sat, sun};
for (int num = mon; num <= sun; num++)
cout << num++ + (days (num));
return 0;
}
Similar questions
Math,
2 months ago
Computer Science,
2 months ago
History,
4 months ago
Physics,
10 months ago
English,
10 months ago