Aoa
sir visual c++ 2005 mai simple calculator kese banta hai?
If u can share screeshots step by step
plz...
I will make it
Aoa
sir visual c++ 2005 mai simple calculator kese banta hai?
If u can share screeshots step by step
plz...
I will make it
jee mujhe visual c++ mai chayeee
#include <iostream.h>
#include <iomanip.h>
void main()
{
int a,b;
char op;
cout<<"Enetr the first value "<<endl;
cin>>a;
cout<<"enter the second value "<<endl;
cin>>b;
cout<<"Enter ur choice u want"<<endl;
cout<<"1=add ,2=sub, 3=mul 4=div = "<<endl;
cin>>op;
switch(op)
{
case '1':
cout<<"Addition = "<<(a+b)<<endl;
break;
case '2':
cout<<"Sub = "<<(a-b)<<endl;
break;
case '3':
cout<<"Multiply = "<<(a*b)<<endl;
break;
case'4':
cout<<"Div = "<<(a/b)<<endl;
break;
cout<<endl;
default:
cout<<"An error has occured"<<endl;
}
}
#include <iostream.h>
#include <iomanip.h>
void main()
{
int a,b;
char op;
cout<<"Enetr the first value "<<endl;
cin>>a;
cout<<"enter the second value "<<endl;
cin>>b;
cout<<"Enter ur choice u want"<<endl;
cout<<"1=add ,2=sub, 3=mul 4=div = "<<endl;
cin>>op;
switch(op)
{
case '1':
cout<<"Addition = "<<(a+b)<<endl;
break;
case '2':
cout<<"Sub = "<<(a-b)<<endl;
break;
case '3':
cout<<"Multiply = "<<(a*b)<<endl;
break;
case'4':
cout<<"Div = "<<(a/b)<<endl;
break;
cout<<endl;
default:
cout<<"An error has occured"<<endl;
}
}
#include <iostream.h>
#include <iomanip.h>
void main()
{
int a,b;
char op;
cout<<"Enetr the first value "<<endl;
cin>>a;
cout<<"enter the second value "<<endl;
cin>>b;
cout<<"Enter ur choice u want"<<endl;
cout<<"1=add ,2=sub, 3=mul 4=div = "<<endl;
cin>>op;
switch(op)
{
case '1':
cout<<"Addition = "<<(a+b)<<endl;
break;
case '2':
cout<<"Sub = "<<(a-b)<<endl;
break;
case '3':
cout<<"Multiply = "<<(a*b)<<endl;
break;
case'4':
cout<<"Div = "<<(a/b)<<endl;
break;
cout<<endl;
default:
cout<<"An error has occured"<<endl;
}
}
Bookmarks