Dasar-Dasar Bahasa #C

nah pada postingan kali ini aku coba share cara penggunaan tipe data bada Bahasa #C

langsung aja ke TKP (Tempat Koding Pertama)
#include <stdio.h>
main()
{
int Be = 345,da=-768;float la= 123.4567890123;
Printf(“%d \n”,Be);
Printf(“%i \n”,Be);
Printf(“10%d \n”,da);
Printf(“10%u \n”,da);
Printf(“%hd \n”,Be);
Printf(“%ld \n”,Be);
Printf(“%f \n”,la);
Printf(“%10.5f \n”,la);
Printf(“%e \n”,la);
Printf(“%g \n”,la);
Printf(“Perkalian Be x la = %10.3f \n”,Be*la);
Printf(“Pembagian da / Be = %10.5f \n”,da/Be);
Printf
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s