write a program in c Input any two numbers and display division of these numbers.
Answers
Answered by
0
This is modern C language, and the language in figure is also C language but it is old.
#include<studio.h>
#include<conio.h>
int main()
clrscr();
{
int a;
int b;
printf("enter the first number:");
scanf("%d",&a);
printf("enter the second number:");
scanf("%d",&b);
int c = a/b
printf ("Result: %d",c);
getch();
}
OUTPUT
Enter the first number:28
Enter the second number:4
Result:7
Attachments:
Answered by
0
Answer -
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,div;
clrscr();
printf("enter any two numbers");
scanf("%d%d",&a,&b);
div = a/b;
printf("Division=%d",div);
getch();
}
Similar questions
Math,
6 months ago
Computer Science,
6 months ago
Math,
1 year ago
Science,
1 year ago
Computer Science,
1 year ago
Science,
1 year ago
Math,
1 year ago