SlideShare a Scribd company logo
1 of 2
#include <iostream.h>
#include <conio.h>
int a,b,c;
int add();
int sub();
int mul();
int div();
int mod();
int main()
{
cout<<"Enter first number=";
cin>>a;
cout<<"Enter second number=";
cin>>b;
add();
cout<<"n The addition of "<<a<<" & "<<b<<" is="<<c;
sub();
cout<<"n The subtraction of "<<a<<" & "<<b<<" is="<<c;
mul();
cout<<"n The multiplication of "<<a<<" & "<<b<<" is="<<c;
div();
cout<<"n The division of "<<a<<" & "<<b<<" is="<<c;
mod();
cout<<"n The modulus of "<<a<<" & "<<b<<" is="<<c;
return 0;
getch();
}
int add()
{
c=a+b;
return c;
}
int sub()
{
c=a-b;
return c;
}
int mul()
{
c=a*b;
return c;
}
int div()
{
c=a/b;
return c;
}
int mod()
{
c=a%b;
return c;
}
#include <iostream.h>
#include <conio.h>
int add(int,int);
int sub(int,int);
int mul(int,int);
int div(int,int);
int mod(int,int);
void main ()
{
int a,b,c;
cout<<"Enter the values for two numbers=";
cin>>a>>b;
c=add(a,b);
cout<<"n The addition of "<<a<<" & "<<b<<" is="<<c;
c=sub(a,b);
cout<<"n The subtraction of "<<a<<" & "<<b<<" is="<<c;
c=mul(a,b);
cout<<"n The multiplication of "<<a<<" & "<<b<<" is="<<c;
c=div(a,b);
cout<<"n The division of "<<a<<" & "<<b<<" is="<<c;
c=mod(a,b);
cout<<"n The modulus of "<<a<<" & "<<b<<" is="<<c;
getch();
}
int add(int x,int y)
{
int z=x+y;
return z;
}
int sub(int x,int y)
{
int z=x-y;
return z;
}
int mul(int x,int y)
{
int z=x*y;
return z;
}
int div(int x,int y)
{
int z=x/y;
return z;
}
int mod(int x,int y)
{
int z=x%y;
return z;
}

More Related Content

What's hot

Programa donde suma las filass de las dos columna y ordena el resultado de l...
Programa donde suma  las filass de las dos columna y ordena el resultado de l...Programa donde suma  las filass de las dos columna y ordena el resultado de l...
Programa donde suma las filass de las dos columna y ordena el resultado de l...
Yo no soy perfecta pero soy mejor que tu
 
ZipCode_Distance_by_Agent_Home_Zip_2015091501
ZipCode_Distance_by_Agent_Home_Zip_2015091501ZipCode_Distance_by_Agent_Home_Zip_2015091501
ZipCode_Distance_by_Agent_Home_Zip_2015091501
Robert Davis
 
とある断片の超動的言語
とある断片の超動的言語とある断片の超動的言語
とある断片の超動的言語
Kiyotaka Oku
 
1 borland c++ 5.02 by aramse
1   borland c++ 5.02 by aramse1   borland c++ 5.02 by aramse
1 borland c++ 5.02 by aramse
Aram SE
 

What's hot (20)

Understanding the nodejs event loop
Understanding the nodejs event loopUnderstanding the nodejs event loop
Understanding the nodejs event loop
 
Programa donde suma las filass de las dos columna y ordena el resultado de l...
Programa donde suma  las filass de las dos columna y ordena el resultado de l...Programa donde suma  las filass de las dos columna y ordena el resultado de l...
Programa donde suma las filass de las dos columna y ordena el resultado de l...
 
Clock For My
Clock For MyClock For My
Clock For My
 
Java JIT Optimization Research
Java JIT Optimization Research Java JIT Optimization Research
Java JIT Optimization Research
 
Ac cuda c_5
Ac cuda c_5Ac cuda c_5
Ac cuda c_5
 
ZipCode_Distance_by_Agent_Home_Zip_2015091501
ZipCode_Distance_by_Agent_Home_Zip_2015091501ZipCode_Distance_by_Agent_Home_Zip_2015091501
ZipCode_Distance_by_Agent_Home_Zip_2015091501
 
Bank management system project in c++ with graphics
Bank management system project in c++ with graphicsBank management system project in c++ with graphics
Bank management system project in c++ with graphics
 
Week 5
Week 5Week 5
Week 5
 
Array matrix example programs - C language
Array matrix example programs - C languageArray matrix example programs - C language
Array matrix example programs - C language
 
大量地区化解决方案V5
大量地区化解决方案V5大量地区化解决方案V5
大量地区化解决方案V5
 
とある断片の超動的言語
とある断片の超動的言語とある断片の超動的言語
とある断片の超動的言語
 
Vcs23
Vcs23Vcs23
Vcs23
 
1 borland c++ 5.02 by aramse
1   borland c++ 5.02 by aramse1   borland c++ 5.02 by aramse
1 borland c++ 5.02 by aramse
 
Sbaw090519
Sbaw090519Sbaw090519
Sbaw090519
 
Cpp programs
Cpp programsCpp programs
Cpp programs
 
Contoh program c++ kalkulator
Contoh program c++ kalkulatorContoh program c++ kalkulator
Contoh program c++ kalkulator
 
Empolyee deatils in java
Empolyee deatils in javaEmpolyee deatils in java
Empolyee deatils in java
 
2
22
2
 
Program to sort array using insertion sort
Program to sort array using insertion sortProgram to sort array using insertion sort
Program to sort array using insertion sort
 
Csphtp1 21
Csphtp1 21Csphtp1 21
Csphtp1 21
 

Viewers also liked

Viewers also liked (20)

Operating Systems
Operating SystemsOperating Systems
Operating Systems
 
English 01 application
English 01 applicationEnglish 01 application
English 01 application
 
Advantages and disadvantages of LCD
Advantages and disadvantages of LCDAdvantages and disadvantages of LCD
Advantages and disadvantages of LCD
 
Programming assignment 02 (bilal maqbool 10) 2011
Programming assignment 02    (bilal maqbool 10) 2011Programming assignment 02    (bilal maqbool 10) 2011
Programming assignment 02 (bilal maqbool 10) 2011
 
Dld lecture module 05
Dld lecture module 05Dld lecture module 05
Dld lecture module 05
 
Chapter10
Chapter10Chapter10
Chapter10
 
Dld lecture module 03
Dld lecture module 03Dld lecture module 03
Dld lecture module 03
 
Uncdtalk
UncdtalkUncdtalk
Uncdtalk
 
Dld lecture module 04 01
Dld lecture module 04  01Dld lecture module 04  01
Dld lecture module 04 01
 
Presentation internet programming report
Presentation internet programming reportPresentation internet programming report
Presentation internet programming report
 
Internet presentation
Internet presentationInternet presentation
Internet presentation
 
Algorithm defination, design & Implementation
Algorithm defination, design & ImplementationAlgorithm defination, design & Implementation
Algorithm defination, design & Implementation
 
Bill gates
Bill gatesBill gates
Bill gates
 
Bluetooth 27 01-12 PPT
Bluetooth 27 01-12 PPTBluetooth 27 01-12 PPT
Bluetooth 27 01-12 PPT
 
Computer graphics
Computer graphicsComputer graphics
Computer graphics
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 
Dld lecture module 01
Dld lecture module 01Dld lecture module 01
Dld lecture module 01
 
Number+system (1)
Number+system (1)Number+system (1)
Number+system (1)
 
Basic+machine+organization
Basic+machine+organizationBasic+machine+organization
Basic+machine+organization
 
Internet
InternetInternet
Internet
 

Similar to Programming assignment 30 12-11

Oops practical file
Oops practical fileOops practical file
Oops practical file
Ankit Dixit
 
ch6_additional.ppt
ch6_additional.pptch6_additional.ppt
ch6_additional.ppt
LokeshK66
 
Assignement of programming & problem solving
Assignement of programming & problem solvingAssignement of programming & problem solving
Assignement of programming & problem solving
Syed Umair
 
Tugas praktikukm pemrograman c++
Tugas praktikukm  pemrograman c++Tugas praktikukm  pemrograman c++
Tugas praktikukm pemrograman c++
Dendi Riadi
 

Similar to Programming assignment 30 12-11 (20)

Include
IncludeInclude
Include
 
Ooprc3c
Ooprc3cOoprc3c
Ooprc3c
 
CBSE Class XI Programming in C++
CBSE Class XI Programming in C++CBSE Class XI Programming in C++
CBSE Class XI Programming in C++
 
Oops practical file
Oops practical fileOops practical file
Oops practical file
 
C++ assignment
C++ assignmentC++ assignment
C++ assignment
 
C++ file
C++ fileC++ file
C++ file
 
C++ file
C++ fileC++ file
C++ file
 
Cpp c++ 1
Cpp c++ 1Cpp c++ 1
Cpp c++ 1
 
54602399 c-examples-51-to-108-programe-ee01083101
54602399 c-examples-51-to-108-programe-ee0108310154602399 c-examples-51-to-108-programe-ee01083101
54602399 c-examples-51-to-108-programe-ee01083101
 
C++ Programs
C++ ProgramsC++ Programs
C++ Programs
 
C++ Programming - 1st Study
C++ Programming - 1st StudyC++ Programming - 1st Study
C++ Programming - 1st Study
 
Bijender (1)
Bijender (1)Bijender (1)
Bijender (1)
 
ch6_additional.ppt
ch6_additional.pptch6_additional.ppt
ch6_additional.ppt
 
Assignement of programming & problem solving
Assignement of programming & problem solvingAssignement of programming & problem solving
Assignement of programming & problem solving
 
C++ practical
C++ practicalC++ practical
C++ practical
 
Tugas praktikukm pemrograman c++
Tugas praktikukm  pemrograman c++Tugas praktikukm  pemrograman c++
Tugas praktikukm pemrograman c++
 
901131 examples
901131 examples901131 examples
901131 examples
 
C++ file
C++ fileC++ file
C++ file
 
CPP Quiz
CPP QuizCPP Quiz
CPP Quiz
 
Laporan pd kelompok 6
Laporan pd kelompok 6Laporan pd kelompok 6
Laporan pd kelompok 6
 

More from Bilal Maqbool ツ

More from Bilal Maqbool ツ (17)

Complement
ComplementComplement
Complement
 
Okkkkk
OkkkkkOkkkkk
Okkkkk
 
Good
GoodGood
Good
 
Dld lecture module 06
Dld lecture module 06Dld lecture module 06
Dld lecture module 06
 
Dld lecture module 02
Dld lecture module 02Dld lecture module 02
Dld lecture module 02
 
Lecture 3 report writtng
Lecture 3 report writtngLecture 3 report writtng
Lecture 3 report writtng
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
Lecture 1 report writing
Lecture 1 report writingLecture 1 report writing
Lecture 1 report writing
 
Magnetic storage devices
Magnetic storage devicesMagnetic storage devices
Magnetic storage devices
 
How internet technology be used to spread scientific awareness among pakistan...
How internet technology be used to spread scientific awareness among pakistan...How internet technology be used to spread scientific awareness among pakistan...
How internet technology be used to spread scientific awareness among pakistan...
 
Math assignment Program
Math assignment ProgramMath assignment Program
Math assignment Program
 
Final of sentences PPT
Final of sentences PPTFinal of sentences PPT
Final of sentences PPT
 
A history of windows
A history of windowsA history of windows
A history of windows
 
Lcd
LcdLcd
Lcd
 
Bluetooth PPT Report
Bluetooth PPT ReportBluetooth PPT Report
Bluetooth PPT Report
 
Computing assignment 02 ms access (bilal maqbool 10) se-i
Computing assignment 02   ms access (bilal maqbool 10)          se-iComputing assignment 02   ms access (bilal maqbool 10)          se-i
Computing assignment 02 ms access (bilal maqbool 10) se-i
 
Bilal maqbool assignment no.01 computing
Bilal maqbool assignment no.01 computingBilal maqbool assignment no.01 computing
Bilal maqbool assignment no.01 computing
 

Recently uploaded

Recently uploaded (20)

Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Basic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationBasic Intentional Injuries Health Education
Basic Intentional Injuries Health Education
 

Programming assignment 30 12-11

  • 1. #include <iostream.h> #include <conio.h> int a,b,c; int add(); int sub(); int mul(); int div(); int mod(); int main() { cout<<"Enter first number="; cin>>a; cout<<"Enter second number="; cin>>b; add(); cout<<"n The addition of "<<a<<" & "<<b<<" is="<<c; sub(); cout<<"n The subtraction of "<<a<<" & "<<b<<" is="<<c; mul(); cout<<"n The multiplication of "<<a<<" & "<<b<<" is="<<c; div(); cout<<"n The division of "<<a<<" & "<<b<<" is="<<c; mod(); cout<<"n The modulus of "<<a<<" & "<<b<<" is="<<c; return 0; getch(); } int add() { c=a+b; return c; } int sub() { c=a-b; return c; } int mul() { c=a*b; return c; } int div() { c=a/b; return c; } int mod() { c=a%b; return c; } #include <iostream.h> #include <conio.h>
  • 2. int add(int,int); int sub(int,int); int mul(int,int); int div(int,int); int mod(int,int); void main () { int a,b,c; cout<<"Enter the values for two numbers="; cin>>a>>b; c=add(a,b); cout<<"n The addition of "<<a<<" & "<<b<<" is="<<c; c=sub(a,b); cout<<"n The subtraction of "<<a<<" & "<<b<<" is="<<c; c=mul(a,b); cout<<"n The multiplication of "<<a<<" & "<<b<<" is="<<c; c=div(a,b); cout<<"n The division of "<<a<<" & "<<b<<" is="<<c; c=mod(a,b); cout<<"n The modulus of "<<a<<" & "<<b<<" is="<<c; getch(); } int add(int x,int y) { int z=x+y; return z; } int sub(int x,int y) { int z=x-y; return z; } int mul(int x,int y) { int z=x*y; return z; } int div(int x,int y) { int z=x/y; return z; } int mod(int x,int y) { int z=x%y; return z; }