Contoh Program >>>
#include <iostream> // Header
#include <conio.h> // Header
using namespace std ;
int main ()
{
int y,x,m;
cout<<"Bermain Dengan Increment & Decrement|\n";
cout<<" -Bagy_CB- |\n";
cout<<"-------------------------------------\n";
cout<<"Masukan Batas : ";
cin>>m ;
cout<<endl ;
{
for (y=m;y>=1;y--)
{
cout<<y<<" ";
}
cout<<"\n" ;
for (x=y+1;x<=m;x++)
{
cout<<x;
}
cout<<"\n" ;
system ("Pause") ;
return 0;
}
}
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
0 Response to "Menentukan bilangan naik turun >>> Dev C++"
Post a Comment