Program menampilkan angka mulai dari angka 1 sampai 4.
1. RAPTOR
2. C++
#include <iostream>
#include <conio.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main(int argc, char** argv) {
int a;
cout<<"\t\tProgram Menghitung 0 sampai 4"<<endl<<endl;
for (a=1;a<=4;a++){
cout<<a<<endl;
}
return 0;
}
#include <conio.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main(int argc, char** argv) {
int a;
cout<<"\t\tProgram Menghitung 0 sampai 4"<<endl<<endl;
for (a=1;a<=4;a++){
cout<<a<<endl;
}
return 0;
}
Hasil compilenya adalah :
Semoga bermanfaat !!!
Wassalamuallaikum wr. wb.
0 comments :
Post a Comment