Write a program divide two number

Write a program divide two number


Write a program divide two number


//Write a program division two number.
#include<stdio.h>
#include<conio.h>
void main()
{
    int a,b,div;
    printf("\n Enter a number=");
    scanf("%d",&a);
    printf("\n Enter a number=");
    scanf("%d",&b);
    div=a/b;
    printf("\n Division=%d",div);
    //second method
    printf("\n Second method Division=%d",a/b);
    getch();
}



output:-

Enter a number=4 Enter a number=2 Division=2 Second method Division=2









Related Program (Please Check)

1. Basic Question All



Post a Comment

0 Comments