C Program to Perform All Arithmetic Operations

 #include<stdio.h>

void main()

{

    int a,b;

    printf("Enter two numbers: ");

    scanf("%d %d",&a,&b);


    printf("Addition = %d\n",a+b);

    printf("Subtraction = %d\n",a-b);

    printf("Multiplication = %d\n",a*b);

    printf("Division = %d\n",a/b);

    printf("Remainder = %d\n",a%b);

}

Comments

Popular posts from this blog

Single Program Using All Automatic String Functions

C program for subtraction of two matrices (2D Arrays)

C program for Multiplication of Two matrices