Masukan Username Dan Password, Jika bukan Member Anda Bisa Mendaftar... ^^V Dari Pada bengong Di luar gak bisa liat isi forum.... yukz Daftar.... Gratis Kok!!!
Masukan Username Dan Password, Jika bukan Member Anda Bisa Mendaftar... ^^V Dari Pada bengong Di luar gak bisa liat isi forum.... yukz Daftar.... Gratis Kok!!!
Would you like to react to this message? Create an account in a few clicks or log in to continue.



 
IndeksPortalLatest imagesPendaftaranLogin
Hai Imut'z..... Jadi VIP yuk'z dengan cara donasi Biar imut'z Bisa selalu Hidup wat kamu.... Minat Hubungi Admin Devil....
Untuk Member tolong jangan junk demi GB Post... baca rules sebelum posting.... untuk momod dan staff, tolong bantu jaga kerapian forum.... postingan yg tidak ada hubungannya dengan topik tolong di hapus.... terima kasih.... Ttd Admin Imut'z

 

 Chapter C for Dummies

Go down 
PengirimMessage
Dexterine

Dexterine


Jumlah posting : 295
Join date : 24.11.10
Age : 29
Lokasi : Jambi

Chapter C for Dummies Empty
PostSubyek: Chapter C for Dummies   Chapter C for Dummies Icon_minitime2010-12-04, 17:56

Hello,meet again with me.Now we’ll learn about C.in here,I make a program for newbie in order to can understand the basic syntax.check this out

/*
brought to y0u by : omicron9194
*/
#include
#include

int main(int argc, char *argv[])
{
char a [100];
int b;
int hasil;
int hasil2;
int bagi = 2;

printf ("\t\t\t %34 Welcome to TikKetik %34 \n");
printf ("\t\t\t");

int i;
for ( i = 0; i < 10; i++ )
{
printf (" ");
}

printf ( "\n\n\n\nIn this program, you will learn input and output in C\n" );
getch();
printf ( "How to print \\ in C?\n");
printf ("Use double blackslash \\ in your code \n");
printf ("How to make comment in c?\n");
printf ("Use double slash (//) for one row comment \n");
printf ("How to print % in C? \n");
printf ("Use %% to your code \n");
printf ("Press Enter to Continue \n");
getch();
printf ("What is printf \n?");
printf ("printf means print by the format \n");
printf ("There are many different format for different data type, such as \n");
printf ("%d for integer \n");
printf ("%c for character \n");
printf ("%s for string \n");
printf ( "%f for float \n");
printf ("Let's try it ^_^ \n");
printf ("Press Enter to Continue \n");
getch();
printf ("Hey, What's your name?");
gets(a);
printf ( "So, your name is %s\n",a);
printf ( "Then what your lucky number? ");
scanf("%i",&b);
printf ( "hoho \n");
hasil = b / bagi;
hasil2 = b % bagi;
printf ("b / bagi = %i/%i",b,bagi);printf("= %i\n",hasil);
printf ("b %% bagi = %i%%%i",b,bagi);printf("= %i\n",hasil2);
printf ("number += 3 \n");
printf ("The meaning of formula above is we add 3 to the number, or we can say like this : %i",b);printf(" + 3 \n\n");
printf ("Well, we have finished studying the easiest material of C : i/o + variable ");
getch();
printf ("\n\n\n\n\n\n\n\n\n\n\n\nSuccess in my right. . . so what are you waiting for?\t Reach your dream \n");

for ( i = 0; i < 8; i++ )
{
printf( " ");
}
printf( "\n");

getchar();

system("PAUSE");
return 0;
}

ok , thats the code.you can compile with C compiler.I use devc++ compiler

for the explain,later I'll.cause last night I was insomnia.so now my body still tire.I need to take rest [Very Happy]
Kembali Ke Atas Go down
Tamu
Tamu




Chapter C for Dummies Empty
PostSubyek: Re: Chapter C for Dummies   Chapter C for Dummies Icon_minitime2011-01-31, 13:27

THANKS KK
Kembali Ke Atas Go down
 
Chapter C for Dummies
Kembali Ke Atas 
Halaman 1 dari 1

Permissions in this forum:Anda tidak dapat menjawab topik
 :: Teknik Informasi Dan Seluk-Beluknya :: Programming-
Navigasi: