calculator using C program in Tamil


#include<stdio.h>
#include<conio.h>
void main()
{
   int ch,a,b,c;
   float d;
   clrscr();
   printf("\n1.Addition\n2.Subtraction\n3.Multiplecation\n4.Division");
   printf("\nEnter the Two number :");
   scanf("%d%d",&a,&b);
   printf("\nEnter your choice :");
   scanf("%d",&ch);
   switch(ch)
   {
      case 1:
		c=a+b;
		printf("\nAddtion : %d",c);
      break;
      case 2:
		c=a-b;
		printf("\nSubtraction : %d",c);
      break;
      case 3:
		c=a*b;
		printf("\nMultiplecation : %d",c);
      break;
      case 4:
		d=a/b;
		printf("\nDivision  : %f",d);
      break;
      default:
	  printf("\nInvalid number ");
      break;
   }
   getch();
}

Login To Download Source Code

Leave a Comment:

Login To Comment

List Of Programs


Goto Examples

Operators

Looping

Number Conversion

Pattern Design

Arrays

Matrix Examples

Sorting Examples

String Function

Change Case

String In C

Maths Functions

User Defined Functions

Recursive Functions

Pointer

Structure

File Concept

Calender Programming