How To Create Calculator In C#

Aaj C# Language me Calculator banana sikhte hai or Ham C# Language Me Kuch Option Ka Use Karte Hai Jisse Hamari C# Language Skills Imporve Hogi or Har Topic Ko ham Details Read Karte Hai Aapne Bahut Website Dekho Hogi Lekin Wo Aapko Details Me Nhi Batate Jisse Aapka Time Waste Hota Or Kuch Sikhne Ko Nhi Milta Hai.

How To Create Calculator In C#

Ham Calculator Ko Bahut Alag Alag Function Se Bana Sakte Hai Leking Ham Aaj Kuch New Design Me Banate Hai Or Kuch Alag Karte Hai .

Calculator In C# Language
// Follow This Code 

#include <stdio.h>    // Use Input output Dene Ke liye 
#include <conio.h>    // Use Clear Screen Or Getch
#include <math.h>   //  Use Math Calculation 
 
int main()
{
 
    int input,a,b,result;
    char option;
    clrscr();
do{
 
    printf("Calculator:\n");
 
    printf("\n Enter 1 for addition:\n ");
    printf("Enter 2 for subtraction:\n ");
    printf("Enter 3 for division:\n ");
    printf("Enter 4 for multiplication:\n ");
    printf("Enter The Choice No.\n");
    scanf("%d",&input);
    printf("Enter First number:\n");
    scanf("%d",&a);
    printf("Enter second number:\n");
    scanf("%d",&b);
 
    switch(input){
        case 1 : result=a+b;
                 printf("The addition is : %d\n",result);
                 break;
        case 2 : result=a-b;
                 printf("The Substraction is : %d\n",result);
                 break;
        case 3 : result=a/b;
                 printf("The Multiplication is : %d\n",result);
                 break;
        case 4 : result=a*b;
                 printf("The division is : %d\n",result);
                 break;
 
        default: printf("wrong input\n");
 
    }
    printf("Do you want to continue ? (y/n)\n");
    option=getche();
 
    }while(option=='y');
 
 gatch();
}

Output

Aap Dekh Sakte Hai Ye output hai Lekin Aapko Pahle Program ko Read Karna Hoga Jisse Aap Or Accha Program Bana Sakte Hai Me Aapko Isme Kuch Topic Samjha Ta Hu

Switch Statement

Switch Statement Bahut Important Hai Isme Aap Or Method Se Bhi Program Bana Sakte Hai Lekin Switch Statement Ka Use Karke Chota Program Kar Sakte Hai Or Easy Bhi

Switch Statement Me Ek Jyada Condition Ka Use Kar Sakte Hai Jese Ki Agar Aap Division Karna Chahte Ho To Keval Switch Statement Me Condition Lga Do Or Fir Switch Statement Khud Karke Results De De Ga Jese Ki Aap Program Dekh Rhe Hai Ussi Tarah OR bhi Condition Lga Sakte Hai .

Agar Aapko Program Se Related Kuch Problem Hoto Aap Hamare Se Question Kar Sakte Hai .

Please follow and like us:
error
Summary
Review Date
Reviewed Item
How To Create Calculator In C#
Author Rating
51star1star1star1star1star

Danish Ali

I Am a 1st Sem BCA Student & I have Skills C, C++ ,Python, HTML,CSS, Computer & Advance Hacking & Blogger & YouTuber.

5 thoughts on “How To Create Calculator In C#

  • 19/07/2019 at 7:37 AM
    Permalink

    *Oh my goodness! an amazing article dude. Thank you However I am experiencing issue with ur rss . Don?t know why Unable to subscribe to it. Is there anyone getting identical rss problem? Anyone who knows kindly respond. Thnkx

    Reply
  • 29/08/2019 at 8:36 AM
    Permalink

    I am actually delighted to read this blog posts which contains plenty of helpful data, thanks for providing such data.|

    Reply
  • Pingback:C Programming Full Course| Full Course C programming in Hindi

  • 14/10/2019 at 7:55 PM
    Permalink

    Thank you for sharing your info. I truly appreciate your efforts and I am waiting for your next post thanks once again.|

    Reply
  • 14/10/2019 at 7:55 PM
    Permalink

    I was suggested this blog by my cousin. I am not sure whether this post is written by him as nobody else know such detailed about my difficulty. You are wonderful! Thanks!|

    Reply

Leave a Reply

Your e-mail address will not be published. Required fields are marked *