write a program to calculate the Addition , Substraction ,Multiplication , Division, of number

                                       


 /* write a program to calculate the Addition , Substraction ,Multiplication , Division, of number*/

#include<stdio.h>

#include<conio.h>

void main()

{                int a, b, Add, Sub, Mul, Div;

                  clrscr();

                  printf("Enter a numbers =\n");

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

                  Add=a+b;

                  Sub=a-b;

                   Mul=a*b;

                   Div=a/b;

                   printf("\nAddition of No=%d",Add);

                  printf("\nSubstraction of No=%d",Sub);

                  printf("\nMultiplication of No =%d",Mul);

                  printf("\nDivision of No =%d",Div);

                  getch();

}


    /*        Output Screen :--

           Enter a number =4

             2

           Addition of No             =6

            Substraction of No      =2

            Multiplication  of No  =8

            Division of No             =2

     */

                                                    


                                                        😊😉😘

           

No comments:

Post a Comment

This Blog helps you to learn basics to high level programming coding and practicals.
conceptual understanding

c program, Advance coding, c++ program, simple program, Advance language

online quiz Application project page MCA final year project

  Here we making a quiz application ppt presentation for college project so that our project idea will like to our professor and teacher  fi...