[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 379: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 678: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 678: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 1042: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
DOEACC FORUM • View topic - Print Menu
Page 1 of 1

Print Menu

Unread postPosted: Thu May 22, 2008 6:37 pm
by rajeevmahura
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
int ch;
clrscr();
printf("Enter the values");
scanf("%d%d",&a,&b);
printf("\n1.MULTIPLICATION");
printf("\n2.DIVISION");
printf("\n3.ADDITION");
printf("\n4.SUBSTRACTION");
printf("\nEnter your choice");
scanf("%d",&ch);
switch(ch)
{
case 1:
c=a*b;
break;
case 2:
c=a/b;
break;
case 3:
c=a+b;
break;
case 4:
c=a-b;
break;
defult:
printf("Sorry you have type the invalid choice");
}
printf("%d",c);
getch();
}