#include <iostream> using namespace std; int main() { int n,i; cout<<"Enter the number : "; cin>>n; for(i=1;i<1000;i++){ if(n%7==0) cout<<n<<" "; } return 0; }
Closed due to the fact that off-topic participants yolosora , freim , Dmitry Kozlov , aleksandr barakin , Eugene Krivenja March 31 at 20:07 .
It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:
- " Learning tasks are allowed as questions only on the condition that you tried to solve them yourself before asking a question . Please edit the question and indicate what caused you difficulties in solving the problem. For example, give the code you wrote, trying to solve the problem "- freim, Dmitry Kozlov, Eugene Krivenja
- 2 ^ nn is what? 2 to the power of n squared, n multiplied by 2 to the power of n? ... - Harry
- @Harry is 2 ^ n. n divided by 7 - bijou
- one[this is 2 ^ n. n divided by 7] It did not become clearer. :-) - pepsicoca1
- I still do not understand a damn. One sentence is "this is 2 ^ n" The second is "n is divisible by 7". So what are we looking for? :) And, in any case, it is necessary to close due to the "learning question, did not do anything on my own" ... - Harry
- oneWhat is the use of incomprehensible code if the condition itself is not clear ? There will be TK - we will say, but for now - HZ ... - Harry
|