Posts

Showing posts with the label Program for Division of two input number using 'C'.

Program for Division of two input number using 'C'.

#include <stdio.h> #include<conio.h>//not necessary void main() {    int num1, num2, div; //declaration    printf("Enter first number: "); //for input     scanf("%d", &num1);    printf("Enter second number: "); //for input    scanf("%d", &num2);    div = num1 % num2; //multiplication    printf("Division of the entered numbers: %d", div);    clrscr();//not necessary }