-=adulhere=-

welcome plend adul here……..

Syntak dasar looping

syntak dasar looping pake for:

#include<stdio.h>

int main() {
int n;
for( n =0; n <= 10;n++) {
printf (n);
}

syntak dasar looping pake while:

#include<stdio.h>

int main() {

int n;
while  n < 10 {

printf(n);

n++
}

Oktober 21, 2009 Posted by | Pemproggraman | Tinggalkan sebuah Komentar

C++ #Mencari Kelipatan 9 bukan Genap

#include <iostream>
using namespace std;

int main()
{

for (int i=9 ; i<=100 ; i+=9){
if ((i%2) != 0){
cout << i << “, “;
}
}

cin.get();

system(“pause”);

return 0;
}

Oktober 19, 2009 Posted by | Pemproggraman | Tinggalkan sebuah Komentar

Ikuti

Get every new post delivered to your Inbox.