answersLogoWhite

0

#include<stdio.h>main()

{

float x,y,d; //x&y are numbers &d is division

printf("Enter 2 numbers separated by space");

scanf("%f%f",&x,&y);

d=x/y;

printf("Answer is %f",d);

return 0;

}

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

Write a program to convert a 2 digit BCD number into hexadecimal number?

Write a program to convert a 2-digit BCD number into hexadecimal


2 Write a program to convert a 2-digit BCD number into hexadecimal?

WRITE A PROGRAM TO CONVERT A 2-DIGIT bcd NUMBER INTO HEXADECIMAL


How do you write a division sentence?

you can write a division sentence by writing lets say 20/2. You have to have a big number first like 20 then a division sign / then a smaller number that goes in to the numbe 20 which can be 2 then you put an equal sign = then the answer which is 10. that's how to right a division sentence.


What are the instruction sets that tell the computer what to do called?

Data = values that a program can use.Ans.2: = A Program is the set of instructions.


Could you Write a program for 8086 microprocessor that displays on the monitor the average of 2 numbers from an array?

How to write a program for mouse in microprocessor?


Write a program to divide 2 numbers without using the division operator?

int divide1(int a,int b) { int t=1; while(b*t&lt;=a) { t++; } return t-1; }


Java program to swap values of 2 variables?

a=a+b; b=a-b; a=a-b;


Write a program for addition in c plus plus?

#include#includemain(){clrscr();coutb;cout


Write a c program for false position method?

Write a simple program in finding roots x^3-6x^2+11x-6.1=0


How many scholarship players are on a NCAA basketball team?

The NCAA allows each Division 1 Men's Basketball program 13 Scholarships and in Division 2, 10 are available. For Women's basketball 15 Scholarships are offered in Division 1 and 10 in Division 2. from collegescholarships.org


Write a program adding 2 plus 2 in c program?

#include &lt;stdio.h&gt; int main (void) { puts ("4"); return 0; }


Write a java script program to print first ten odd natural numbers in C?

Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.