Welcome!



I'm Alexander Rahardjo. Here is some tutorials with its algorithms and source codes for solving some programming problem with some programming languages. Check this out and enjoy to learn programming with this site. For question you can ask by the "Visitors" box..Thanks






Showing posts with label Source Code. Show all posts
Showing posts with label Source Code. Show all posts

There is a program for Fibonacci Number normal and abnormal


/*Fibonacci Number
author http://www.programming-codes.co.cc*/

import java.util.*;
class Fibonacci{
public static void main(String args[]){
int a,b,c,input;
Scanner read = new Scanner(System.in);
a=0;
b=1;
c=1;
System.out.print(" *Program Fibonacci Normal dan Tak Normal*\n\n");
System.out.print("Masukkan banyaknya deret fibonacci= ");
input = read.nextInt();
System.out.print("Deret Fibonacci Normal= ");
for(int i=1;i<=input;i++){
System.out.print(c+" ");
c = a+b;
a = b;
b = c;
}
a=0;
b=1;
c=1;
System.out.print("\nDeret Fibonacci Tak Normal= ");
for(int i=1;i<=input;i++){
if (i % 2 == 0)
{
c=c*(-1);
}
else
{
c=c*1;
}
System.out.print(c+" ");
c = a+b;
a = b;
b = c;
}
System.out.println();
}
}



Download the code here


[ Read More ]

Posted in Label: , , 0 komentar Diposting oleh Alexander Rahardjo  

There is a program for Fibonacci Number normal and abnormal


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

int main(void)
{
int a,b,c,i,input;
a=0;
b=1;
c=1;
printf("Masukkan banyaknya deret fibonacci= ");
scanf("%d",&input);
printf("Deret Fibonacci= ");
for (i=1;i<=input;i++)
{
printf("%d ",c);
c=a+b;
a=b;
b=c;
}
getch();
return (0);
}




Download the code here


[ Read More ]

Posted in Label: , , 0 komentar Diposting oleh Alexander Rahardjo  

[Java] Hello World

(Jul 10, 2008)

Here is a code of Java language for our beginning>>



Download the code here


[ Read More ]

Posted in Label: , , 0 komentar Diposting oleh Alexander Rahardjo  

Here is a code of C language for our beginning>>



Download the code here


[ Read More ]

Posted in Label: , , 0 komentar Diposting oleh Alexander Rahardjo  

 



Copyright 2005-2007. Hello Wiki designed by Fen, Blogger Templates by Blogcrowds
Last Edited by PhOeNiXxX ™
.