31 January 2008

Perulangan While

#include <iostream.h>

#include <conio.h>

main( )

{

int n;

cout<<"masukkan angka untuk mulai : ";

cin>>n;

while(n>0)

{

cout<<n<<",";

--n;

}

cout<<"stop!";

getch( );

}

COMMENTS :

Don't Spam Here

0 komentar to “Perulangan While”

 

Copyright © 2009 Fresh Themes Gallery | NdyTeeN. All Rights Reserved. Powered by Blogger and Distributed by Blogtemplate4u .