Showing posts with label switch. Show all posts
Showing posts with label switch. Show all posts
Thursday, February 26, 2015
Quickly Switch Between Your Open Programs
Here is yet another keyboard shortcut that i use all the time! How to quickly switch between two (or more) open programs on your computer!

Read more »

Thursday, February 12, 2015
C Program to do arithmetic operations according to user choice using switch case
include<iostream.h>
#include<conio.h>
void main()
{ clrscr();
int a,b;
char c;
cout<<"Enter any expression(ex:3*7):";
cin>>a>>c>>b;
switch(c)
{
case+: cout<<"
Result:"<<a+b;
break;
case-: cout<<"
Result:"<<a-b;
break;
case*: cout<<"
Result:"<<a*b;
break;
case/: cout<<"
Result:"<<a/b;
break;
case%: cout<<"
Result:"<<a%b;
break;
}
getch();
}
#include<conio.h>
void main()
{ clrscr();
int a,b;
char c;
cout<<"Enter any expression(ex:3*7):";
cin>>a>>c>>b;
switch(c)
{
case+: cout<<"
Result:"<<a+b;
break;
case-: cout<<"
Result:"<<a-b;
break;
case*: cout<<"
Result:"<<a*b;
break;
case/: cout<<"
Result:"<<a/b;
break;
case%: cout<<"
Result:"<<a%b;
break;
}
getch();
}
Subscribe to:
Posts (Atom)