Filename | DIV and MOD |
Permission | rw-r--r-- |
Author | pramana |
Date and Time | 12:34 pm |
Label | Alpro cases |
Action |
#include <iostream>
#include <string>
using namespace std;
int main()
{
string raptor_prompt_variable_zzyz;
int m =0;
int n =0;
int q =0;
int r =0;
cout << "enter n : "; raptor_prompt_variable_zzyz =n;
cout << raptor_prompt_variable_zzyz << endl;
cin >> n;
cout << n << endl; cout << "enter m : "; raptor_prompt_variable_zzyz =m;
cout << raptor_prompt_variable_zzyz << endl;
cin >> m;
cout << m << endl; q =m/n;
cout << " q : "; cout << q << endl; r =m % n;
cout << " r : "; cout << r << endl;
return 0;
}
0 comments:
Post a Comment