Girin Digdo
Blog Universitas Komputer Indonesia

Chapter C for Dummies

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


brought to y0u by : omicron9194
#include <stdio.h>
#include <stdlib.h>

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" );
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");
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");
printf ("Hey, What's your name?");
printf ( "So, your name is %s\n",a);
printf ( "Then what your lucky number?  ");
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 ");
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");


return 0;

ok , thats the can compile with C compiler.I use devc++ compiler ;)

for the explain,later I'll.cause last night I was now my body still tire.I need to take rest :D

Format Lainnya : PDF | Google Docs | English Version
Diposting pada : Rabu, 07 Juli 10 - 08:21 WIB
Dibaca sebanyak : 1311 Kali
Tidak ada komentar pada blog ini...
Anda harus Login terlebih dahulu untuk mengirim komentar
Facebook Feedback