Saturday, 3 May 2014

Write a C code that calculates remainder without using % operator.

Leave a Comment
Solution:-

#include<iostream>
#include<conio.h>
using namespace std;
int main ()
{
 int a,b,c;
 cout<<"Enter Numbers = ";
 cin>>a>>b;
 c=a/b;
 c=c*b;
 b=a-c;
 cout<<b;
 getch();
}
If You Enjoyed This, Take 5 Seconds To Share It