SlideShare a Scribd company logo
1 of 7
Download to read offline
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

What's hot

c++ program for Railway reservation
c++ program for Railway reservationc++ program for Railway reservation
c++ program for Railway reservationSwarup Kumar Boro
 
The Ring programming language version 1.9 book - Part 14 of 210
The Ring programming language version 1.9 book - Part 14 of 210The Ring programming language version 1.9 book - Part 14 of 210
The Ring programming language version 1.9 book - Part 14 of 210Mahmoud Samir Fayed
 
JavaOne2010 Groovy/Spring Roo
JavaOne2010 Groovy/Spring RooJavaOne2010 Groovy/Spring Roo
JavaOne2010 Groovy/Spring RooYasuharu Nakano
 
C++ Programming - 14th Study
C++ Programming - 14th StudyC++ Programming - 14th Study
C++ Programming - 14th StudyChris Ohk
 
Telephone billing system in c++
Telephone billing system in c++Telephone billing system in c++
Telephone billing system in c++vikram mahendra
 
Investigatory Project for Computer Science
Investigatory Project for Computer Science Investigatory Project for Computer Science
Investigatory Project for Computer Science Sonali Sinha
 
Any number system to any number system convertor
Any number system to any number system convertorAny number system to any number system convertor
Any number system to any number system convertorpatelsandip5682
 
c++ program using All data type and operators
c++ program using All data type and operators c++ program using All data type and operators
c++ program using All data type and operators AMUDHAJAY
 
C basics
C basicsC basics
C basicsMSc CST
 

What's hot (20)

c++ program for Railway reservation
c++ program for Railway reservationc++ program for Railway reservation
c++ program for Railway reservation
 
The Ring programming language version 1.9 book - Part 14 of 210
The Ring programming language version 1.9 book - Part 14 of 210The Ring programming language version 1.9 book - Part 14 of 210
The Ring programming language version 1.9 book - Part 14 of 210
 
C lab programs
C lab programsC lab programs
C lab programs
 
JavaOne2010 Groovy/Spring Roo
JavaOne2010 Groovy/Spring RooJavaOne2010 Groovy/Spring Roo
JavaOne2010 Groovy/Spring Roo
 
Operator overloading
Operator overloadingOperator overloading
Operator overloading
 
Codes on structures
Codes on structuresCodes on structures
Codes on structures
 
C programming
C programmingC programming
C programming
 
Canteen management
Canteen managementCanteen management
Canteen management
 
C Programming lab
C Programming labC Programming lab
C Programming lab
 
Oopsprc1e
Oopsprc1eOopsprc1e
Oopsprc1e
 
C++ Programming - 14th Study
C++ Programming - 14th StudyC++ Programming - 14th Study
C++ Programming - 14th Study
 
Implementing string
Implementing stringImplementing string
Implementing string
 
Telephone billing system in c++
Telephone billing system in c++Telephone billing system in c++
Telephone billing system in c++
 
Include
IncludeInclude
Include
 
Investigatory Project for Computer Science
Investigatory Project for Computer Science Investigatory Project for Computer Science
Investigatory Project for Computer Science
 
Any number system to any number system convertor
Any number system to any number system convertorAny number system to any number system convertor
Any number system to any number system convertor
 
JavaScript Operators
JavaScript OperatorsJavaScript Operators
JavaScript Operators
 
c++ program using All data type and operators
c++ program using All data type and operators c++ program using All data type and operators
c++ program using All data type and operators
 
project
projectproject
project
 
C basics
C basicsC basics
C basics
 

Similar to Contoh program c++ kalkulator

Lecture#5 Operators in C++
Lecture#5 Operators in C++Lecture#5 Operators in C++
Lecture#5 Operators in C++NUST Stuff
 
Tugas praktikukm pemrograman c++
Tugas praktikukm  pemrograman c++Tugas praktikukm  pemrograman c++
Tugas praktikukm pemrograman c++Dendi Riadi
 
Kirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third YearKirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third Yeardezyneecole
 
Reshma Kodwani , BCA Third Year
Reshma Kodwani , BCA Third YearReshma Kodwani , BCA Third Year
Reshma Kodwani , BCA Third Yeardezyneecole
 
Computer Science Project on Management System
Computer Science Project on Management System Computer Science Project on Management System
Computer Science Project on Management System SajidAli643
 
cbse 12 computer science IP
cbse 12 computer science IPcbse 12 computer science IP
cbse 12 computer science IPD. j Vicky
 
Assignment (page 120 no 2) coding
Assignment (page 120 no 2) codingAssignment (page 120 no 2) coding
Assignment (page 120 no 2) codingewanz89
 
Assignement of programming & problem solving
Assignement of programming & problem solvingAssignement of programming & problem solving
Assignement of programming & problem solvingSyed Umair
 
The Ring programming language version 1.6 book - Part 9 of 189
The Ring programming language version 1.6 book - Part 9 of 189The Ring programming language version 1.6 book - Part 9 of 189
The Ring programming language version 1.6 book - Part 9 of 189Mahmoud Samir Fayed
 
Laporan pd kelompok 6
Laporan pd kelompok 6Laporan pd kelompok 6
Laporan pd kelompok 6phoe3
 
Simple C programs
Simple C programsSimple C programs
Simple C programsab11cs001
 
c++ practical Digvajiya collage Rajnandgaon
c++ practical  Digvajiya collage Rajnandgaonc++ practical  Digvajiya collage Rajnandgaon
c++ practical Digvajiya collage Rajnandgaonyash production
 
cbse 12 computer science investigatory project
cbse 12 computer science investigatory project  cbse 12 computer science investigatory project
cbse 12 computer science investigatory project D. j Vicky
 
cbse 12 computer science investigatory project
cbse 12 computer science investigatory project  cbse 12 computer science investigatory project
cbse 12 computer science investigatory project D. j Vicky
 

Similar to Contoh program c++ kalkulator (20)

Lecture#5 Operators in C++
Lecture#5 Operators in C++Lecture#5 Operators in C++
Lecture#5 Operators in C++
 
Tugas praktikukm pemrograman c++
Tugas praktikukm  pemrograman c++Tugas praktikukm  pemrograman c++
Tugas praktikukm pemrograman c++
 
Kirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third YearKirti Kumawat, BCA Third Year
Kirti Kumawat, BCA Third Year
 
Reshma Kodwani , BCA Third Year
Reshma Kodwani , BCA Third YearReshma Kodwani , BCA Third Year
Reshma Kodwani , BCA Third Year
 
901131 examples
901131 examples901131 examples
901131 examples
 
Computer Science Project on Management System
Computer Science Project on Management System Computer Science Project on Management System
Computer Science Project on Management System
 
C++ Programm.pptx
C++ Programm.pptxC++ Programm.pptx
C++ Programm.pptx
 
cbse 12 computer science IP
cbse 12 computer science IPcbse 12 computer science IP
cbse 12 computer science IP
 
Assignment (page 120 no 2) coding
Assignment (page 120 no 2) codingAssignment (page 120 no 2) coding
Assignment (page 120 no 2) coding
 
Assignement of programming & problem solving
Assignement of programming & problem solvingAssignement of programming & problem solving
Assignement of programming & problem solving
 
C++ Programs
C++ ProgramsC++ Programs
C++ Programs
 
The Ring programming language version 1.6 book - Part 9 of 189
The Ring programming language version 1.6 book - Part 9 of 189The Ring programming language version 1.6 book - Part 9 of 189
The Ring programming language version 1.6 book - Part 9 of 189
 
Laporan pd kelompok 6
Laporan pd kelompok 6Laporan pd kelompok 6
Laporan pd kelompok 6
 
Oops presentation
Oops presentationOops presentation
Oops presentation
 
Lecture04
Lecture04Lecture04
Lecture04
 
Simple C programs
Simple C programsSimple C programs
Simple C programs
 
c++ practical Digvajiya collage Rajnandgaon
c++ practical  Digvajiya collage Rajnandgaonc++ practical  Digvajiya collage Rajnandgaon
c++ practical Digvajiya collage Rajnandgaon
 
cbse 12 computer science investigatory project
cbse 12 computer science investigatory project  cbse 12 computer science investigatory project
cbse 12 computer science investigatory project
 
cbse 12 computer science investigatory project
cbse 12 computer science investigatory project  cbse 12 computer science investigatory project
cbse 12 computer science investigatory project
 
Cpp
Cpp Cpp
Cpp
 

Recently uploaded

Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfrs7054576148
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...tanu pandey
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoordharasingh5698
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxJuliansyahHarahap1
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 

Recently uploaded (20)

Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdf
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 

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 ↑