Saved Bookmarks
| 1. |
Rewrite the following C++ code after removing any/all syntactical errors with each correction underlined.Note: Assume all required header files are already included in the program. Typedef Count int; void main () {Count C; cout>C; for (K = 1; K<=C; K++) cout << C "*" K << endl;} |
|
Answer» The correct C++ code after removing any/all syntactical errors: typedef int Count: void main () { Count C; cout <<"Enter the count : "; cin>>c; for(int K=1 ; K<= C ; K++) cout<<c<<"*"<<k<<end1; } |
|