Monday, 13 February 2017

Geeksforgeeks Solution For " Remainder Evaluation "

GeeksforGeeks Solution For School Domain .Below You Can Find The Solution Of Basic ,Easy ,Medium ,Hard .You Can Also Direct Submit Your Solution to Geeksforgeeks Same Problem .You Need to login then you can submit you answers 

Problem :- Given two positive integers num1 and num2, the task is to find the remainder when num1 is divided by num2. 

Submit Your Solution :- Click Here 


Solution :-

#include <iostream>
using namespace std;
int main() 
{
    int t,num1,num2,rem;
cin>>t;
while(t--)
{
   cin>>num1>>num2;
   rem=num1%num2;
   cout<<rem<<endl;
   num1=0;num2=0;
}
return 0;
}



Output:-

Geeksforgeeks Solution For " Remainder Evaluation "

No comments:
Write comments

Recommended Posts × +