Write a program to divide two integers in C ?
Hello aspirant,
I am providing you the code in c language for dividing two interger.
Please have a look on the code.
#include <stdio.h>
int main() {
int dividend, divisor, quotient, remainder;
printf("Enter dividend: ");
scanf("%d", ÷nd);
printf("Enter divisor: ");
scanf("%d", &divisor);
// Computes quotient
quotient = dividend / divisor;
// Computes remainder
remainder = dividend % divisor;
printf("Quotient = %d\n", quotient);
printf("Remainder = %d", remainder);
return 0;
}
It you find any error while executing so please let me know.
Hope this helps you
All the best for your future

![CAT Colleges 2025 Accepting Low Percentile [UPDATED LIST]: MBA Colleges for >50-65+ CAT Percentile](https://cache.careers360.mobi/media/presets/50X50/article_images/2025/12/18/CAT-2025-Colleges-With-Low-Percentile.jpg)


.jpg)