C program to calculate Quotient and Remainder

Question: Write a program which ask user to input two integers then check and print how many times the first integer can be divided by the seconf integer and what will be the reminder?
// Online C compiler to run C program online
#include <stdio.h>
void main()
{
    int a,b,c,d;
    printf("Enter two integers  ");
    scanf("%d %d",&a,&b);
    c=a/b;
    d=a%b;
printf("%d can be divided by %d in %d times and %d will be left \n",a,b,c,d);
}

Categories: c programming

Blog Categories
Trending Courses

CodeIgniter

Regular : 45 Days

Fastrack : 20 Days

Crash : 10 Days

Advance Digital Marketing Expert Course

Regular : 6 Months

Fastrack : 3 Months

Crash : 2 Months

React JS

Regular : 45 Days

Fastrack : 25 Days

Crash : 15 Days

Laravel

Regular : 45 Days

Fastrack : 20 Days

Crash : 10 Days

Front End Developer

Regular : 6 Months

Fastrack : 4 Months

Crash : 2 Months

Python

Regular : 30 Days

Fastrack : 15 Days

Crash : 10 Days

Related Blogs

Request For Demo