Skip to content

Instantly share code, notes, and snippets.

@gcs-abdulwahab
Last active September 23, 2022 05:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gcs-abdulwahab/698951ab442c6cef58b0ce58cad00805 to your computer and use it in GitHub Desktop.
Save gcs-abdulwahab/698951ab442c6cef58b0ce58cad00805 to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
int main (){
int x = 14;
int y = 3;
cout<<"Enter Values of x and y ";
cin>> x >> y;
// I can change it
int d = y;
int q = x / y;
int r = x % y;
cout<< q << " x " << d << " + " << r;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment