Home
»
BAHASA PROGRAM Cpp
»
CONTOH PROGRAM LOGIKA BORLAND C++, OPERATOR KOMA, CONTOH PRINTF ATAU PUT CHAR, SERTA PUTS, PADA C++
---------------------------------------------------------------------------------------------------
/*program increment*/
#include<stdio.h>
#include<conio.h>
main()
{
int x=10;
x=x++;
printf("nilai x=%d\n",x);
x=++x;
printf("nilai x=%d\n",x);
getch();
}
PROGRAM OPERATOR KOMA
---------------------------------------------------------------------------------------------------
/*program koma*/
#include<stdio.h>
#include<conio.h>
main()
{
char kar1,kar2;
(kar1='A',kar2='B');
printf("%c\n",kar1);
printf("%c\n",kar2);
getch();
}
---------------------------------------------------------------------------------------------------
PROGRAM CONTOH PRINTF ATAU PUT CHAR---
---------------------------------------------------------------------------------------------------
/*program contoh_printf.cpp*/
#include<stdio.h>
#include<conio.h>
main()
{
char a;
a='B';
putchar(a);
putchar('\n');
putchar('-');
getch();
}
---------------------------------------------------------------------------------------------------
PROGRAM PUTS
---------------------------------------------------------------------------------------------------
/*program contoh_printf.cpp*/
#include<stdio.h>
#include<conio.h>
main()
{
char *nama,*jurusan;
nama= "FIRMAN JAYA HALAWA";
puts(nama);
jurusan="teknik informatika";
puts(jurusan);
getch();
}
---------------------------------------------------------------------------------------------------
=================================THANKS=======================================
TERIMAKASIH TELAH MEMBACA BLOG KITA TENTANG CACATAN KULIAH INI.
============================================================
JANGAN LUPA PILIH IKUTI BLOG BIAR DAPAT UPDATE DARI BLOG KITA.
===================================================================
SERING-SERINGLAH BERKUNJUNG DI BLOG INI YA..HEHE
============================================================
KALAU ADA YANG SALAH ATAU PERLU DIBENAHI SILAHKAN KOMENTAR SAJA YA DI BAWAH...
=======================================================================
KALAU ADA MAU TANYA LEBIH KOMENTAR SAJA.. KITA USAHAKAN CEPAT JAWAB KOK..HEHE
===========================================================================
==============================================================
==============================
Manhalawa
Mei 19, 2017
Admin
Bandung Indonesia
CONTOH PROGRAM LOGIKA BORLAND C++, OPERATOR KOMA, CONTOH PRINTF ATAU PUT CHAR, SERTA PUTS, PADA C++
---------------------------------------------------------------------------------------------------
/*program increment*/
#include<stdio.h>
#include<conio.h>
main()
{
int x=10;
x=x++;
printf("nilai x=%d\n",x);
x=++x;
printf("nilai x=%d\n",x);
getch();
}
PROGRAM OPERATOR KOMA
---------------------------------------------------------------------------------------------------
/*program koma*/
#include<stdio.h>
#include<conio.h>
main()
{
char kar1,kar2;
(kar1='A',kar2='B');
printf("%c\n",kar1);
printf("%c\n",kar2);
getch();
}
---------------------------------------------------------------------------------------------------
PROGRAM CONTOH PRINTF ATAU PUT CHAR---
---------------------------------------------------------------------------------------------------
/*program contoh_printf.cpp*/
#include<stdio.h>
#include<conio.h>
main()
{
char a;
a='B';
putchar(a);
putchar('\n');
putchar('-');
getch();
}
---------------------------------------------------------------------------------------------------
PROGRAM PUTS
---------------------------------------------------------------------------------------------------
/*program contoh_printf.cpp*/
#include<stdio.h>
#include<conio.h>
main()
{
char *nama,*jurusan;
nama= "FIRMAN JAYA HALAWA";
puts(nama);
jurusan="teknik informatika";
puts(jurusan);
getch();
}
---------------------------------------------------------------------------------------------------
=================================THANKS=======================================
TERIMAKASIH TELAH MEMBACA BLOG KITA TENTANG CACATAN KULIAH INI.
============================================================
JANGAN LUPA PILIH IKUTI BLOG BIAR DAPAT UPDATE DARI BLOG KITA.
===================================================================
SERING-SERINGLAH BERKUNJUNG DI BLOG INI YA..HEHE
============================================================
KALAU ADA YANG SALAH ATAU PERLU DIBENAHI SILAHKAN KOMENTAR SAJA YA DI BAWAH...
=======================================================================
KALAU ADA MAU TANYA LEBIH KOMENTAR SAJA.. KITA USAHAKAN CEPAT JAWAB KOK..HEHE
===========================================================================
==============================================================
==============================
Labels:
BAHASA PROGRAM Cpp
Thanks for reading CONTOH PROGRAM LOGIKA BORLAND C++, OPERATOR KOMA, CONTOH PRINTF ATAU PUT CHAR, SERTA PUTS, PADA C++. Please share...!
0 Comment for "CONTOH PROGRAM LOGIKA BORLAND C++, OPERATOR KOMA, CONTOH PRINTF ATAU PUT CHAR, SERTA PUTS, PADA C++"