#include<iostream.h>
#include<conio.h>
void main ()
{
int m,n,c,r;
clrscr();
cout<<"\n
Enter First Number ";
cin>>m;
cout<<"\n
Enter Second Number ";
cin>>n;
cout<<"\n------------------";
cout<<"\n1.
Addition";
cout<<"\n2.
Subtraction";
cout<<"\n3.
Multiplication";
cout<<"\n4.
Division";
cout<<"\n5.
Remainder";
cout<<"\n------------------";
cout<<"\n
Enter UR Choice ";
cin>>c;
cout<<"\n------------------";
switch(c)
{
case 1 :
r=m+n;
cout<<"\nAddition =
"<<r;
break;
case 2 :
r=m-n;
cout<<"\nSubtraction =
"<<r;
break;
case 3 :
r=m*n;
cout<<"\nMultiplication"<<r;
break;
case 4 :
r=m/n;
cout<<"\n Division"<<r;
break;
case 5 :
r=m%n;
cout<<"\n
Remainder"<<r;
break;
default :
cout<<"\n Invalid";
}
cout<<"\n------------------";
|
Output |
Computer Science :: 11th/12th, Computer Engineering :: Degree/Diploma, Coding Concept ( C, C++ & JAVA Programming, JDBC Concept, DBMS - SQL Concept, Data Structure, Communication & Network Concept.
MENU DRIVEN TO PERFORMED ARITHMETIC OPERATION
Subscribe to:
Posts (Atom)
JAC Board Computer || IIT 2025 || Introductory Information Technology || Class 10 || Practical Examination 2025
Marks Division HOE 30 Marks IT Application Report File 20 Marks Viva - Voce 10 Marks 1) Write an HTML code to generate a web p...
-
1) TCP/IP - Transmission Control Protocol/ Internet Protocol. 2) HTTPs - Hyper Text Transfer Protocol. 3) ICT - Information Comunication Te...
-
1) What is Make Code Arcade? Answer: Make Code Arcade is a coding platform that enables to create block – based program. 2) How ...
-
Programmingway@Eklavya Technosys!: New Year's 2025 | Happiness & Healthier's Life Sty... : भारत कई धर्मों का संगम है, हिंदू, मुस...
No comments:
Post a Comment