#include<stdio.h>
      int main()
      {   
          int a, b;
          printf("Enter two numbers\n");
          scanf("%d %d", &a, &b);
          printf("multiplication=%d\n", a*b);
          printf("division=%f\n", (float)a/b);
          printf("addition=%d\n", a+b);
          printf("subtraction=%d\n", a-b);
          printf("mod=%d", a%b);
          return 0;
      }
      
      C language logo

      arithmetic operators

      0

      0

      avatar
      omtajne11

      example of using arithmetic operators

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.