- 1
Please help
I want to write a program in cpp which accept no between 2 and 20 and give following output Ex if 3 is input then output is * * * * * * * * *
3 Answers
+ 5
So, where's your attempt
You have to show your attempt before asking us to do so
0
#include <iostream>
using namespace std;
int main() {
int x;
cout<<"enter no between 2 and 20";
cin>>x;
for(i=x;i<=20;i++)
cout<<i;
return 0;
}
0
Could do it here only