Algoritma Pemrograman
- C++ Iteraktif
- C++ Rekursif
- Raptor Iteratif
#include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
int a;
cout<<"Sampai bilangan ke- ";cin>>a;
cout<<"Bilangan Genap Pertambahan 3 : ";
for(int i =0;i<=a;i=i+3){
if(i%2==0)
cout<<i<<" ";
}
return 0;
}
Comming soon
4. Raptor Rekursif
EmoticonEmoticon