Thursday, June 3, 2010

PERULANGAN C++

#include
#include
int main()
{
int n, a;
clrscr();
printf ("masukkan angka : ");
scanf ("%d", &a);
for (n=1; n <= a; n++)
{
printf ("%d\n", n);
}
getch();
}

No comments: