Pertanyaan :
Cetaklah bilangan 1 sampai 4
#include <iostream>
using namespace std;
int main(int argc, char** argv) {
int i,batas;
batas=4;
i=1;
cout<<"Program Mencetak Bilangan 1-4"<<endl;
while(!(i>batas)){
cout<<i<<endl;
i=i+1;
}
return 0;
}
Raptor :
Blogger Comment
Facebook Comment