Header Ads Widget

C program to divide a number by any other number

 C program to divide a number by any other number

Given a number divide it  by other number , write a program to divide a number by other number .

Sample input:-

12 
4

Sample output:-

3

 C program to divide a number by any other number

The objective of code is to divide a number by other number .

Code(C):-

#include<stdio.h>
int main()
{
int a,b,div;
scanf("%d%d",&a,&b);
div=a/b;
printf("%d",div);
return 0;
}

Output:-

12
4
3



Recommended Post :-

HCL Coding Questions:-

Capgemini Coding Questions:-

Companies interview:-

Full C course:-    

Key points:-

Cracking the coding interview:-

 Array and string:-

Tree and graph:-

Hackerearth Problems:-

Hackerrank Problems:-

Data structure:-

 MCQs:-