11+ Mock Test Papers Tutor Pack for CEM Inc Audio Download (Letts 11+ Success)

11+ Mock Test Papers Tutor Pack for CEM Inc Audio Download (Letts 11+ Success)

TI Sekolah Menengah Atas Buatlah program (C++) seperti perintah berikut :
Nilai awal = 10
Nilai akhir = 100
Tampilannya kelipatan 10


10
20
30
40
50
60
70
80
90
100

Buatlah program (C++) seperti perintah berikut :
Nilai awal = 10
Nilai akhir = 100
Tampilannya kelipatan 10


10
20
30
40
50
60
70
80
90
100

Jawaban:

#include <iostream>

using namespace std;

int main() {

 for (int i = 10; i <= 100; i = i + 10) {

   cout << i << "\n";

 }

 return 0;

}

Penjelasan:

[answer.2.content]