print table of n usnig do-while loop Get link Facebook X Pinterest Email Other Apps // wacp to print table #include <iostream> using namespace std; void main() { int n; cout<<"Enter a positive integer: "; cin>>n; do { cout<<n<<" * "<<i<<" = "<<n*i<<endl; i++; } while(i<=10) } Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment