Write a c program to divide two numbers and print the result, inputs must be taken using scanf function.
Que : Write a c program to divide two numbers and print the result, inputs must be taken using scanf function.
Ans :
#include<stdio.h>
int main()
{
int a,b,div;
printf("Enter the first number :");
scanf("%d",&a);
printf("Enter the second number :");
scanf("%d",&b);
div=a/b;
printf("The result is %d ",div);
return 0;
}
************************************************************************ Now its turn to show intput or output of the questions :
************************************************************************
Thank You:)
Comments
Post a Comment