Division of Two Numbers using C-Program - Learn Engineering

All the news and updates relevant to Engineering. You can also Write a post here

Breaking

Saturday, June 13, 2020

Division of Two Numbers using C-Program

Question

Division of Two Numbers

Sample TestCase Expected Output

1. 12 26


2. 8 24


Answer

      #include<stdio.h>
      int main()
      {
        int num1,num2,quot;
        scanf("%d %d", &num1, &num2);
        quot = num1 / num2;
        printf("%d",quot);
        return 0;
      }

Follow Us For More...

1 comment: