How to write a program to divide two numbers in C language
#include <stdio.h>
#include <conio.h>
int main()
{
int a,b,c;
printf("Enter two numbers to divide\n");
scanf("%d%d",&a,&b);
division=a/b;
printf("division of the entered numbers=%d\n",sum);
return 0;
}
OUTPUT: -
Enter two numbers to add
9
3
Division of the entered numbers= 3


No comments:
Post a Comment