Monday, November 21, 2011

Program C++ Mencetak Deret

#include <iostream.h>
#include <conio.h>
void main()
{
int com,id;
cout<<"masukkan bilangan terbesar = ";
cin>>com;
for (id=com; id>=1; id--)
    {
   cout<<" "<<id;
    }
    cout<<endl;
getch();
}

0 comments:

Post a Comment