Bilangan ganjil menurun :
/*Program for bilangan menurun*/
/*herisokwan tgal wong*/
#include
#include
#include "iostream.h"
main()
{
int a=19;
clrscr();
do
{cout <<
getch();
}
Bilangan ganjil menurun :
/*Program for bilangan ggenap menurun*/
/*herisokwan tgal wong*/
#include
#include
#include "iostream.h"
main()
{
int a;
clrscr();
for(a=10;a>=1;a-=2)
cout <
#include
#include "iostream.h"
main()
{
int a;
clrscr();
for(a=10;a>=1;--a)
cout <
#include
#include "iostream.h"
main()
{
int a;
clrscr();
for(a=1;a<=10;a+=2) cout <
#include
#include "iostream.h"
main()
{
int bil=2;
clrscr();
do
{printf("%d",bil);
bil+=2;}
while(bil<=30); getch(); } /*Program for bilangan naik*/ #include
#include
#include "iostream.h"
main()
{
int a;
clrscr();
for(a=1;a<=10;++a) cout<
#include
#include
main()
{
char nama[25],jur[2],grade,wkt;
float sesi,grd;
long total;
clrscr();
cout<<"\nNama Zaya :";cin>>nama;
getch();
}
#include
#include
#include
#include
main()
{
char nama[5],nim[20],kd,jrs[25];
long bkl,bpr,ttl;
clrscr();
cout <<"PROGRAM HITUNG BIAYA KULIAH"<
cout <<"NIM :";cin>>nim;
cout <<"Kode Jurusan [1/2/3] :";cin>>kd;
cout <<"*********************************"<
#include
#include "iostream.h"
main()
{
int a;
clrscr();
for(a=1;a<=10;++a) cout<
getch();
}