#include<iostream
>
#include<conio.h
>
using namespace std;
int main()
{
int divisor, dividend, quotient, remainder;
cout<<"Enter dividend : ";
cin>>dividend;
cout<<"Enter Divisor : ";
cin>>divisor;
quotient = dividend / divisor;
remainder = dividend % divisor;
cout<<"Quotient : "<<quotient
<<endl;
cout<<"Remainder : "<<remainder<<
endl;
getch();
return 0;
}
Sunday, 22 October 2017
Program to find Quotient and Remainder in c++
Subscribe to:
Post Comments (Atom)
Python Program to find Fabonacci
fabtab={} def fabonacci(n): fabtab[0]=0 fabtab[1]=1 for i in range(2,n+1): fabtab[i]=fabtab[i-1]+fabtab[i-2] ...

-
#include stdio.h > #include stdlib.h > #include conio.h > int arr[100], size=0; void insert_beg(); void insert_pos(); void inser...
-
input_string=input("Enter a string : ") output_string=input_string[::-1] print("Reverse of string ",input_string,...
-
#include< iostream > #include< conio.h > using namespace std; int main() { int base, height; float area...
No comments:
Post a Comment