Sabtu, 17 April 2010

Bilangan ganjil menurun

Bilangan ganjil menurun :
/*Program for bilangan ggenap naik*/
/*herisokwan tgal wong*/

#include "stdio.h"
#include "conio.h"
#include

main()
{
int i,jum=0;
clrscr();
for(i=0;i<=10;i+=2)
{
cout< if(i<10)
cout<<"+";
else
cout<<"=";
jum=jum+i;
}
cout< getch();
}