Kasus 4.1

 Permasalahan :
Cetaklah bilangan 1 sampai 4 :

C++ :
#include <iostream>
#include <conio.h>

using namespace std;

int main(int argc, char** argv) {
int  i,batas;
batas=4;
i=1;

cout<<"Mencetak Bilangan 1-4"<<endl;
while(!(i>batas)){
cout<<i<<endl;
i=i+1;
}
getch();


}

Output :


Raptor :







Share this

Related Posts

Previous
Next Post »