Rewrite the following C++ code after removing any/all syntactical error with each correction underline
Note: Assume all required header files are already included in the program.
Typedef Count(int);
void main()
(
Count C;
cout<<"Enter the count:";
cin>>C;
for (K = 1 ; K<=C;K++)
cout<< C "*" K <<end1;
}
Advertisement Remove all ads
Solution
typedef int Count;
void main()
{
Count C;
cout<<"Enter the count:";
cin>>C;
for (int K = 1 ; K<=C; K++)
cout<< C << “*” << K <<end1;
}
Concept: Concept of Object Oriented Programming in C++
Is there an error in this question or solution?
APPEARS IN
Advertisement Remove all ads