// program kontinue dan break
# include <iostream.h>
void main()
{
int i;
for(i=0; i<10; i++)
{
if(i==4) continue;
cout<<" bilangan "<<i<<endl;
if(i==6)break;
}
}
output
bilangan 0
bilangan 1
bilangan 2
bilangan 3
bilangan 4
bilangan 5
bilangan 6
Friday, 13 January 2012
CPP
0 Response to "contoh 30"
Post a Comment