fork download
  1. #include <iostream>
  2.  
  3. int main() {
  4. // Contoh perulangan for: mencetak angka 0 hingga 4
  5. for (int i = 0; i < 5; ++i) {
  6. std::cout << "Iterasi for ke-" << i << std::endl;
  7. }
  8. return 0;
  9. }
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
Iterasi for ke-0
Iterasi for ke-1
Iterasi for ke-2
Iterasi for ke-3
Iterasi for ke-4