- 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 * * * * * * * * *

17th Jul 2020, 8:37 AM
Aniket M. Galgate
Aniket M. Galgate - avatar
3 Answers
+ 5
So, where's your attempt You have to show your attempt before asking us to do so
17th Jul 2020, 8:39 AM
Rishabh Dwivedi
Rishabh Dwivedi - avatar
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; }
17th Jul 2020, 9:16 AM
Aniket M. Galgate
Aniket M. Galgate - avatar
0
Could do it here only
17th Jul 2020, 9:16 AM
Aniket M. Galgate
Aniket M. Galgate - avatar