Tugas Alpro PPT Minggu ke 4 Kasus 4.2
Mencetak
Bilangan Ganjil 0 - 10
Logikanya Menggunakan Raptor
#include <iostream>
using namespace std;
int main(int argc, char** argv) {
int i;
cout<<"============================="<<endl;
cout<<"mencetak bilangan ganjil 1-10"<<endl;
cout<<"============================="<<endl;
for(i = 0;i<10; i++){
if (i%2==1){
cout<<i<<endl;
}
}
system("pause");
return 0;
}
ABOUT THE AUTHOR
A web designer from India. And then you write some more information about yourself like this to fill out the space that is left.


0 komentar:
Posting Komentar