Search
 
SCRIPT & CODE EXAMPLE
 

CPP

C++ Quotient and Remainder

    int a, b, c, d;

    cout << "Input the dividend" << endl;
    cin >> a;
    cout << "Input the divisor" << endl;
    cin >> b;

    c = a / b;
    d = a % b;

    cout << "The quotient is: " << c << endl;
    cout << "The remainder is: "<< d << endl;
Comment

PREVIOUS NEXT
Code Example
Cpp :: how to get last element of set 
Cpp :: how to declare an enum variable c++ 
Cpp :: flag of georgia 
Cpp :: inline function in cpp 
Cpp :: C++ rename function 
Cpp :: Program to print full pyramid using 
Cpp :: c++ include < vs "" 
Cpp :: remove whitespace in cpp 
Cpp :: Split a number and store it in vector 
Cpp :: what is the time complexitry of std::sort 
Cpp :: pointers c++ 
Cpp :: c++ program to find gcd of 3 numbers 
Cpp :: how to make a pointer point to a the last value in an array 
Cpp :: definition of singly linkedlist 
Cpp :: public method 
Cpp :: kadane algorithm with negative numbers included as sum 
Cpp :: use declaration to define a variable 
Cpp :: kmp c++ 
Cpp :: how togreper 
Cpp :: codeforces problem 1030A solution 
Cpp :: building native binary with il2cpp unity 
Cpp :: surf interpolation matlab 
Cpp :: c++ online 
Cpp :: log base 10 c+_+ 
Cpp :: identity 
Cpp :: dream speedrun song mp4 
Cpp :: CodeChef Starters 30 Division 4 (Rated) Swapping Chefs Way 
Cpp :: cpp fread 
Cpp :: cpp pointer to two dimensional array 
Cpp :: primtiive calculator in c++ 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =