fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. int x;
  6. int i = 1;
  7.  
  8. while (cin >> x && x != 0){
  9. cout << "Case " << i << ": " << x << endl;
  10. i++;
  11. }
  12. return 0;
  13. }
Success #stdin #stdout 0s 5300KB
stdin
3
5
11
7
8
19
0
stdout
Case 1: 3
Case 2: 5
Case 3: 11
Case 4: 7
Case 5: 8
Case 6: 19