DERET ANGKA DENGAN BATAS
#include <iostream.h>
void main()
{
int i,j,input;
char lagi;
coba:
cout<<"Masukan batas = "; cin>>input;
for (i=1;i<=input; i++)
{
cout<<i<<"\t";
}
cout<<"\nIngin masukan lagi [Y/y] =";
cin>>lagi;
if(lagi=='y'||lagi=='Y')
goto coba;
}
No comments:
Post a Comment