joven
09-05-2009, 03:40 PM
#include <cstdlib>
#include <iostream.h>
void main()
{
double num;
double num2;
cout<<" Good Day!!\n";
cout<<"Please enter a number = ";
cin>>num;
cout<<"Another one to be divided= ";
cin>>num2;
cout<<"answer is = "<<num / num2;
cout<<"\n" ;
}
my prob is i want to the remainder only.. ex. 18/5 then the remainder is 3.. can someone revise my code??tnx guys:thumbsup:
#include <iostream.h>
void main()
{
double num;
double num2;
cout<<" Good Day!!\n";
cout<<"Please enter a number = ";
cin>>num;
cout<<"Another one to be divided= ";
cin>>num2;
cout<<"answer is = "<<num / num2;
cout<<"\n" ;
}
my prob is i want to the remainder only.. ex. 18/5 then the remainder is 3.. can someone revise my code??tnx guys:thumbsup: