SlideShare a Scribd company logo
7/5/2015 CONTOH PROGRAM C++ KALKULATOR C++ ~ Contoh Program C++
http://tugasdpk.blogspot.com/2014/12/program­kalkulator­c.html 1/7
Categories
Latihan (16)
Pertemuan 0 (1)
Pertemuan 1 (2)
Pertemuan 2 (3)
Pertemuan 3 (15)
Tugas (4)
Jangan di Klik
Populer
CONTOH PROGRAM C++
OPERATOR BITWISE KIRI
scirpt #include <stdio.h> #include
<conio.h> #include <iostream.h>
void main() { int x; cout<<"...
CONOTH PEROGRAM C++
PENGGUNAAN NOTASI
DIBELAKANG VARIABEL
scirpt // Penggunaan Notasi di
Belakang Variabel #include
<stdio.h> #include <conio.h> void
main() {   int a = 8, ...
CONTOH PROGRAM C++ KALKULATOR
C++
By Wildan Jisung  On 05.26  In Pertemuan 3, Tugas  With No comments 
#include <iostream.h>
#include <conio.h>
void main ()
{
awal:
    int a, b, c, hasil;
char d, e;
cout<<"=============== KALKULATOR ===============n";
    cout<<"Masukan Bilangan ke­1 : ";
    cin>>a;
cout<<"Masukan Operator ke­1 : ";
    cin>>d;
    cout<<"Masukan Bilangan Ke­2 : ";
cin>>b;
cout<<"Masukan Operator ke­2 : ";
cin>>e;
cout<<"Masukan Bilangan ke­3 : ";
cin>>c;
cout<<"================ HASILNYA ================n";
if (d =='+' & e =='+' )
                {
                hasil = a+b+c;
                                cout<<""<<a<<"+"<<b<<"+"<<c<<"  =  "
<<hasil<<endl;
                }
else if (d =='+' & e =='­' )
                {
                hasil = a+b­c;
                                cout<<""<<a<<"+"<<b<<"­"<<c<<"  =  "
<<hasil<<endl;
                }
else if (d =='+' & e =='*' )
                {
                hasil = a+b*c ;
Contoh Program C++
Berisi Berbagai Contoh Program C++ dari Hasil Perkuliahan
Home Business » Downloads » Parent Category » Featured Health »
Uncategorized
tugasdpk.blogspot.com
7/5/2015 CONTOH PROGRAM C++ KALKULATOR C++ ~ Contoh Program C++
http://tugasdpk.blogspot.com/2014/12/program­kalkulator­c.html 2/7
Diberdayakan oleh Blogger.                                cout<<""<<a<<"+"<<b<<"*"<<c<<"  =  "
<<hasil<<endl;
                }
else if (d =='+' & e =='/' )
                {
                hasil = a+b/c ;
                                cout<<""<<a<<"+"<<b<<"/"<<c<<"  =  "
<<hasil<<endl;
                }
else if (d =='+' & e =='%' )
                {
                hasil = a+b%c;
                                cout<<""<<a<<"+"<<b<<"%"<<c<<"  =  "
<<hasil<<endl;
                }
else if (d =='­' & e =='+' )
                {
                hasil = a­b+c ;
                                cout<<""<<a<<"­"<<b<<"+"<<c<<"  =  "
<<hasil<<endl;
                }
else if (d =='­' & e =='­' )
                {
                hasil = a­b­c ;
                                cout<<""<<a<<"­"<<b<<"­"<<c<<"  =  "
<<hasil<<endl;
                }
else if (d =='­' & e =='*' )
                {
                hasil = a­b*c ;
                                cout<<""<<a<<"­"<<b<<"*"<<c<<"  =  "
<<hasil<<endl;
                }
else if (d =='­' & e =='/' )
                {
                hasil = a­b/c ;
                                cout<<""<<a<<"­"<<b<<"/"<<c<<"  =  "
<<hasil<<endl;
                           }
else if (d =='­' & e =='%' )
                {
                hasil = a­b%c;
                                cout<<""<<a<<"­"<<b<<"%"<<c<<"  =  "
<<hasil<<endl;
                }
else if (d =='*' & e =='+' )
                {
                hasil = a*b+c ;
                                cout<<""<<a<<"*"<<b<<"+"<<c<<"  =  "
<<hasil<<endl;
                }
7/5/2015 CONTOH PROGRAM C++ KALKULATOR C++ ~ Contoh Program C++
http://tugasdpk.blogspot.com/2014/12/program­kalkulator­c.html 3/7
else if (d =='*' & e =='­' )
                {
                hasil = a*b­c ;
                                cout<<""<<a<<"*"<<b<<"­"<<c<<"  =  "
<<hasil<<endl;
                }
else if (d =='*' & e =='*' )
                {
                hasil = a*b*c;
                                cout<<""<<a<<"*"<<b<<"*"<<c<<"  =  "
<<hasil<<endl;
                }
else if (d =='*' & e =='/' )
                {
                hasil = a*b/c ;
                                cout<<""<<a<<"*"<<b<<"/"<<c<<"  =  "
<<hasil<<endl;
                }
else if (d =='*' & e =='%' )
                {
                hasil = a*b%c ;
                                cout<<""<<a<<"*"<<b<<"%"<<c<<"  =  "
<<hasil<<endl;
                }
else if (d =='/' & e =='+' )
                {
                hasil = a/b+c ;
                                cout<<""<<a<<"/"<<b<<"+"<<c<<"  =  "
<<hasil<<endl;
                }
else if (d =='/' & e =='­' )
                {
                hasil = a/b­c ;
                                cout<<""<<a<<"/"<<b<<"­"<<c<<"  =  "
<<hasil<<endl;
              }
else if (d =='/' & e =='*' )
                {
                hasil = a/b*c ;
                                cout<<""<<a<<"/"<<b<<"*"<<c<<"  =  "
<<hasil<<endl;
                }
else if (d =='/' & e =='/' )
                {
                hasil = a/b/c ;
                                cout<<""<<a<<"/"<<b<<"/"<<c<<"  =  "
<<hasil<<endl;
       }
else if (d =='/' & e =='%' )
                {
                hasil = a/b%c ;
7/5/2015 CONTOH PROGRAM C++ KALKULATOR C++ ~ Contoh Program C++
http://tugasdpk.blogspot.com/2014/12/program­kalkulator­c.html 4/7
                                cout<<""<<a<<"/"<<b<<"%"<<c<<"  =  "
<<hasil<<endl;
                }
else if (d =='%' & e =='+' )
                {
                hasil = a%b+c ;
                                cout<<""<<a<<"%"<<b<<"+"<<c<<"  =  "
<<hasil<<endl;
              }
else if (d =='%' & e =='­' )
                {
                hasil = a%b­c ;
                                cout<<""<<a<<"%"<<b<<"­"<<c<<"  =  "
<<hasil<<endl;
              }
else if (d =='%' & e =='*' )
                {
                hasil = a%b*c ;
                                cout<<""<<a<<"%"<<b<<"*"<<c<<"  =  "
<<hasil<<endl;
              }
else if (d =='%' & e =='/' )
                {
                hasil = a%b/c ;
                                cout<<""<<a<<"%"<<b<<"/"<<c<<"  =  "
<<hasil<<endl;
              }
else if (d =='%' & e =='%' )
                {
                hasil = a%b%c ;
                                cout<<""<<a<<"%"<<b<<"%"<<c<<"  =  "
<<hasil<<endl;
              }
                         
cout<<"==========================================n";
              cout<<"Mengulang : [Y/N] ? "  ;
    char m ;
    cin>>m;
        if (m == 'Y'|| m== 'y')
            goto awal;
        else if (m == 'N'|| m == 'n')
            {
            goto akhir;
            }
akhir:
       cout<<"Terima Kasih"<<endl;
       getche();
}
Hasil :
7/5/2015 CONTOH PROGRAM C++ KALKULATOR C++ ~ Contoh Program C++
http://tugasdpk.blogspot.com/2014/12/program­kalkulator­c.html 5/7
Share This:    Facebook  Stumble  Digg
Flowchart :
Related Posts:
CONTOH PROGRAM C++ OPERATOR "|"
scirpt #include #include #include void main() {
                     int a, x, y;  cout"Masukan Nilai X = ";  cinx;
 cout"Masuka… Read More
CONTOH PROGRAM C++ PENGGUNAAN OPERATOR
RELASI DAN PENGONDISIAN IF ELSE
scirpt // Penggunaan operator relasi dan if, if else
#include #include void main() {   int m = 5, n = 7;   if (m ==
n)   coutm" Sama Den… Read More
7/5/2015 CONTOH PROGRAM C++ KALKULATOR C++ ~ Contoh Program C++
http://tugasdpk.blogspot.com/2014/12/program­kalkulator­c.html 6/7
Posting Lebih Baru Posting LamaBeranda
CONTOH PROGRAM C++ OPERATOR AND
scirpt #include #include #include void main() {  int a, x, y; 
 cout"Masukan Nilai X = ";  cinx;  cout"Masukan Nilai Y =
";  c… Read More
CONTOH PROGRAM C++ KALKULATOR C++
#include #include void main () { awal:     int a, b, c, hasil;
char d, e; cout"=============== KALKULATOR
===============n";     cout"Mas… Read More
CONTOH PROGRAM C++ OPERATOR LOGIKA
scirpt //Program Operator Logika #include #include void
main() {   int m=166;   cout=0 && m "=0 && m=150)endl;  
cout=0 || m "=0 || m… Read More
7/5/2015 CONTOH PROGRAM C++ KALKULATOR C++ ~ Contoh Program C++
http://tugasdpk.blogspot.com/2014/12/program­kalkulator­c.html 7/7
Belum ada komentar
Tambahkan komentar sebagai Wildan Jisung
Stay Connected with us
Copyright © 2015 Contoh Program C++ | Powered by Blogger
Design by MyThemeShop | Blogger Theme by NewBloggerThemes.com
Back to Top ↑

More Related Content

DOCX
bank management system
TXT
c++ project on restaurant billing
PDF
Computer science Investigatory Project Class 12 C++
PDF
Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)
PDF
C언어 스터디 강의자료 - 1차시
PDF
The Ring programming language version 1.7 book - Part 10 of 196
DOCX
Computer Science investigatory project class 12
PDF
The Ring programming language version 1.8 book - Part 12 of 202
bank management system
c++ project on restaurant billing
Computer science Investigatory Project Class 12 C++
Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)
C언어 스터디 강의자료 - 1차시
The Ring programming language version 1.7 book - Part 10 of 196
Computer Science investigatory project class 12
The Ring programming language version 1.8 book - Part 12 of 202

What's hot (20)

TXT
c++ program for Railway reservation
PDF
The Ring programming language version 1.9 book - Part 14 of 210
PDF
C lab programs
PDF
JavaOne2010 Groovy/Spring Roo
PDF
Operator overloading
PDF
Codes on structures
PPTX
C programming
DOCX
Canteen management
PDF
C Programming lab
PDF
Oopsprc1e
PDF
C++ Programming - 14th Study
PDF
Implementing string
DOC
Telephone billing system in c++
DOCX
Include
DOCX
Investigatory Project for Computer Science
DOCX
Any number system to any number system convertor
PPTX
JavaScript Operators
PDF
c++ program using All data type and operators
DOCX
project
DOC
C basics
c++ program for Railway reservation
The Ring programming language version 1.9 book - Part 14 of 210
C lab programs
JavaOne2010 Groovy/Spring Roo
Operator overloading
Codes on structures
C programming
Canteen management
C Programming lab
Oopsprc1e
C++ Programming - 14th Study
Implementing string
Telephone billing system in c++
Include
Investigatory Project for Computer Science
Any number system to any number system convertor
JavaScript Operators
c++ program using All data type and operators
project
C basics
Ad

Recently uploaded (20)

DOCX
573137875-Attendance-Management-System-original
PPTX
Fundamentals of safety and accident prevention -final (1).pptx
PDF
737-MAX_SRG.pdf student reference guides
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
Construction Project Organization Group 2.pptx
PPTX
Internet of Things (IOT) - A guide to understanding
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPT
Mechanical Engineering MATERIALS Selection
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
OOP with Java - Java Introduction (Basics)
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
Artificial Intelligence
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
CH1 Production IntroductoryConcepts.pptx
573137875-Attendance-Management-System-original
Fundamentals of safety and accident prevention -final (1).pptx
737-MAX_SRG.pdf student reference guides
UNIT-1 - COAL BASED THERMAL POWER PLANTS
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
UNIT 4 Total Quality Management .pptx
CYBER-CRIMES AND SECURITY A guide to understanding
Construction Project Organization Group 2.pptx
Internet of Things (IOT) - A guide to understanding
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Mechanical Engineering MATERIALS Selection
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
OOP with Java - Java Introduction (Basics)
Model Code of Practice - Construction Work - 21102022 .pdf
Automation-in-Manufacturing-Chapter-Introduction.pdf
Artificial Intelligence
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
CH1 Production IntroductoryConcepts.pptx
Ad

Contoh program c++ kalkulator

  • 1. 7/5/2015 CONTOH PROGRAM C++ KALKULATOR C++ ~ Contoh Program C++ http://tugasdpk.blogspot.com/2014/12/program­kalkulator­c.html 1/7 Categories Latihan (16) Pertemuan 0 (1) Pertemuan 1 (2) Pertemuan 2 (3) Pertemuan 3 (15) Tugas (4) Jangan di Klik Populer CONTOH PROGRAM C++ OPERATOR BITWISE KIRI scirpt #include <stdio.h> #include <conio.h> #include <iostream.h> void main() { int x; cout<<"... CONOTH PEROGRAM C++ PENGGUNAAN NOTASI DIBELAKANG VARIABEL scirpt // Penggunaan Notasi di Belakang Variabel #include <stdio.h> #include <conio.h> void main() {   int a = 8, ... CONTOH PROGRAM C++ KALKULATOR C++ By Wildan Jisung  On 05.26  In Pertemuan 3, Tugas  With No comments  #include <iostream.h> #include <conio.h> void main () { awal:     int a, b, c, hasil; char d, e; cout<<"=============== KALKULATOR ===============n";     cout<<"Masukan Bilangan ke­1 : ";     cin>>a; cout<<"Masukan Operator ke­1 : ";     cin>>d;     cout<<"Masukan Bilangan Ke­2 : "; cin>>b; cout<<"Masukan Operator ke­2 : "; cin>>e; cout<<"Masukan Bilangan ke­3 : "; cin>>c; cout<<"================ HASILNYA ================n"; if (d =='+' & e =='+' )                 {                 hasil = a+b+c;                                 cout<<""<<a<<"+"<<b<<"+"<<c<<"  =  " <<hasil<<endl;                 } else if (d =='+' & e =='­' )                 {                 hasil = a+b­c;                                 cout<<""<<a<<"+"<<b<<"­"<<c<<"  =  " <<hasil<<endl;                 } else if (d =='+' & e =='*' )                 {                 hasil = a+b*c ; Contoh Program C++ Berisi Berbagai Contoh Program C++ dari Hasil Perkuliahan Home Business » Downloads » Parent Category » Featured Health » Uncategorized tugasdpk.blogspot.com
  • 2. 7/5/2015 CONTOH PROGRAM C++ KALKULATOR C++ ~ Contoh Program C++ http://tugasdpk.blogspot.com/2014/12/program­kalkulator­c.html 2/7 Diberdayakan oleh Blogger.                                cout<<""<<a<<"+"<<b<<"*"<<c<<"  =  " <<hasil<<endl;                 } else if (d =='+' & e =='/' )                 {                 hasil = a+b/c ;                                 cout<<""<<a<<"+"<<b<<"/"<<c<<"  =  " <<hasil<<endl;                 } else if (d =='+' & e =='%' )                 {                 hasil = a+b%c;                                 cout<<""<<a<<"+"<<b<<"%"<<c<<"  =  " <<hasil<<endl;                 } else if (d =='­' & e =='+' )                 {                 hasil = a­b+c ;                                 cout<<""<<a<<"­"<<b<<"+"<<c<<"  =  " <<hasil<<endl;                 } else if (d =='­' & e =='­' )                 {                 hasil = a­b­c ;                                 cout<<""<<a<<"­"<<b<<"­"<<c<<"  =  " <<hasil<<endl;                 } else if (d =='­' & e =='*' )                 {                 hasil = a­b*c ;                                 cout<<""<<a<<"­"<<b<<"*"<<c<<"  =  " <<hasil<<endl;                 } else if (d =='­' & e =='/' )                 {                 hasil = a­b/c ;                                 cout<<""<<a<<"­"<<b<<"/"<<c<<"  =  " <<hasil<<endl;                            } else if (d =='­' & e =='%' )                 {                 hasil = a­b%c;                                 cout<<""<<a<<"­"<<b<<"%"<<c<<"  =  " <<hasil<<endl;                 } else if (d =='*' & e =='+' )                 {                 hasil = a*b+c ;                                 cout<<""<<a<<"*"<<b<<"+"<<c<<"  =  " <<hasil<<endl;                 }
  • 3. 7/5/2015 CONTOH PROGRAM C++ KALKULATOR C++ ~ Contoh Program C++ http://tugasdpk.blogspot.com/2014/12/program­kalkulator­c.html 3/7 else if (d =='*' & e =='­' )                 {                 hasil = a*b­c ;                                 cout<<""<<a<<"*"<<b<<"­"<<c<<"  =  " <<hasil<<endl;                 } else if (d =='*' & e =='*' )                 {                 hasil = a*b*c;                                 cout<<""<<a<<"*"<<b<<"*"<<c<<"  =  " <<hasil<<endl;                 } else if (d =='*' & e =='/' )                 {                 hasil = a*b/c ;                                 cout<<""<<a<<"*"<<b<<"/"<<c<<"  =  " <<hasil<<endl;                 } else if (d =='*' & e =='%' )                 {                 hasil = a*b%c ;                                 cout<<""<<a<<"*"<<b<<"%"<<c<<"  =  " <<hasil<<endl;                 } else if (d =='/' & e =='+' )                 {                 hasil = a/b+c ;                                 cout<<""<<a<<"/"<<b<<"+"<<c<<"  =  " <<hasil<<endl;                 } else if (d =='/' & e =='­' )                 {                 hasil = a/b­c ;                                 cout<<""<<a<<"/"<<b<<"­"<<c<<"  =  " <<hasil<<endl;               } else if (d =='/' & e =='*' )                 {                 hasil = a/b*c ;                                 cout<<""<<a<<"/"<<b<<"*"<<c<<"  =  " <<hasil<<endl;                 } else if (d =='/' & e =='/' )                 {                 hasil = a/b/c ;                                 cout<<""<<a<<"/"<<b<<"/"<<c<<"  =  " <<hasil<<endl;        } else if (d =='/' & e =='%' )                 {                 hasil = a/b%c ;
  • 4. 7/5/2015 CONTOH PROGRAM C++ KALKULATOR C++ ~ Contoh Program C++ http://tugasdpk.blogspot.com/2014/12/program­kalkulator­c.html 4/7                                 cout<<""<<a<<"/"<<b<<"%"<<c<<"  =  " <<hasil<<endl;                 } else if (d =='%' & e =='+' )                 {                 hasil = a%b+c ;                                 cout<<""<<a<<"%"<<b<<"+"<<c<<"  =  " <<hasil<<endl;               } else if (d =='%' & e =='­' )                 {                 hasil = a%b­c ;                                 cout<<""<<a<<"%"<<b<<"­"<<c<<"  =  " <<hasil<<endl;               } else if (d =='%' & e =='*' )                 {                 hasil = a%b*c ;                                 cout<<""<<a<<"%"<<b<<"*"<<c<<"  =  " <<hasil<<endl;               } else if (d =='%' & e =='/' )                 {                 hasil = a%b/c ;                                 cout<<""<<a<<"%"<<b<<"/"<<c<<"  =  " <<hasil<<endl;               } else if (d =='%' & e =='%' )                 {                 hasil = a%b%c ;                                 cout<<""<<a<<"%"<<b<<"%"<<c<<"  =  " <<hasil<<endl;               }                           cout<<"==========================================n";               cout<<"Mengulang : [Y/N] ? "  ;     char m ;     cin>>m;         if (m == 'Y'|| m== 'y')             goto awal;         else if (m == 'N'|| m == 'n')             {             goto akhir;             } akhir:        cout<<"Terima Kasih"<<endl;        getche(); } Hasil :
  • 5. 7/5/2015 CONTOH PROGRAM C++ KALKULATOR C++ ~ Contoh Program C++ http://tugasdpk.blogspot.com/2014/12/program­kalkulator­c.html 5/7 Share This:    Facebook  Stumble  Digg Flowchart : Related Posts: CONTOH PROGRAM C++ OPERATOR "|" scirpt #include #include #include void main() {                      int a, x, y;  cout"Masukan Nilai X = ";  cinx;  cout"Masuka… Read More CONTOH PROGRAM C++ PENGGUNAAN OPERATOR RELASI DAN PENGONDISIAN IF ELSE scirpt // Penggunaan operator relasi dan if, if else #include #include void main() {   int m = 5, n = 7;   if (m == n)   coutm" Sama Den… Read More
  • 6. 7/5/2015 CONTOH PROGRAM C++ KALKULATOR C++ ~ Contoh Program C++ http://tugasdpk.blogspot.com/2014/12/program­kalkulator­c.html 6/7 Posting Lebih Baru Posting LamaBeranda CONTOH PROGRAM C++ OPERATOR AND scirpt #include #include #include void main() {  int a, x, y;   cout"Masukan Nilai X = ";  cinx;  cout"Masukan Nilai Y = ";  c… Read More CONTOH PROGRAM C++ KALKULATOR C++ #include #include void main () { awal:     int a, b, c, hasil; char d, e; cout"=============== KALKULATOR ===============n";     cout"Mas… Read More CONTOH PROGRAM C++ OPERATOR LOGIKA scirpt //Program Operator Logika #include #include void main() {   int m=166;   cout=0 && m "=0 && m=150)endl;   cout=0 || m "=0 || m… Read More
  • 7. 7/5/2015 CONTOH PROGRAM C++ KALKULATOR C++ ~ Contoh Program C++ http://tugasdpk.blogspot.com/2014/12/program­kalkulator­c.html 7/7 Belum ada komentar Tambahkan komentar sebagai Wildan Jisung Stay Connected with us Copyright © 2015 Contoh Program C++ | Powered by Blogger Design by MyThemeShop | Blogger Theme by NewBloggerThemes.com Back to Top ↑