Answer:
// program in C++.
#include <bits/stdc++.h>
using namespace std;
// main function
int main()
{
// variables
int usernum,x;
cout<<"Enter the first integer:";
// read first integer
cin>>usernum;
cout<<"Enter the second integer:";
// read second integer
cin>>x;
//divide usernum with x four times and print
cout<<usernum/x<<" "<<usernum/(x*2)<<" "<<usernum/(x*4)<<" "<<usernum/(x*8)<<endl;
return 0;
}
Step-by-step explanation:
Read first integer and assign it variable "usernum" and second integer to variable "x" from user.Divide "usernum" with "x" four time and print the value after each division.
Output:
Enter the first integer:4000
Enter the second integer:2
2000 1000 500 250