i want to solve this challenge but i cannot because i don’t about function
About the challenge
hello @manoj2597
u can write ur logic inside main function only . no knowledge of function is required.
for example->
#include<bits/stdc++.h>
using namespace std;
int main() {
int n1;
int n2;
cin>>n1>>n2;
int count=1;
int count2=0;
while(true){
int x=3*count+2;
if(count2==n1){
break;
}
if(x%n2!=0){
cout<<x<<endl;
count2++;
}
count++;
}
return 0;
}
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.