Write a C Program to Divide a Number by the Second Number



Write a C Program to Divide a Number by the Second Number



#include<stdio.h>


#include<conio.h>


void main()


{


float d; 

int a,b;

clrscr();


printf("\nEnter the 1st Number:\t");


scanf("%d",&a);


printf("\nEnter the 2nd Number:\t");


scanf("%d",&b);


d=a/b;


printf("\nThe Quotient is: %f",d);


getch();









}


Comments

Popular posts from this blog

Write a Program to Add two 3x3 Matrix using C

C program for Unit Conversion

Write a Program to Add two 5x5 Matrix using C