Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

hello all; i\'m having a problem with my output. the program that i\'m writingis

ID: 3617081 • Letter: H

Question

hello all;

i'm having a problem with my output. the program that i'm writingis supposed to take a number input than display the output asasterisks. so if the input is 4 the output should be:
*
**
***
****

however, i'm just getting a single column of asterisks. i know itslate and i'm probably making a mental err. thanks for the help:

Help with Code Tags C++ Syntax (Toggle PlainText)
 
  1. #include <iostream>
  2. #include <iomanip>
  3. using namespace std;
  4. int main()
  5. {
  6. int input_1;
  7. int count;
  8. input_1 = 0;
  9. count = 0;
  10. cout<< "Enter any positive number : ";
  11. cin>>input_1;
  12. cout<< input_1 << endl; //this is totest the input only
  13. //need to verify for a positive number and makesure that letters are not used
  14. for (count = 0; count < input_1; count++)
  15. {
  16. for (count = 0; count < input_1; count++)
  17. cout<< " * " <<endl;
  18. }
  19. return 0;
  20. }
Help with Code Tags C++ Syntax (Toggle PlainText)
 
  1. #include <iostream>
  2. #include <iomanip>
  3. using namespace std;
  4. int main()
  5. {
  6. int input_1;
  7. int count;
  8. input_1 = 0;
  9. count = 0;
  10. cout<< "Enter any positive number : ";
  11. cin>>input_1;
  12. cout<< input_1 << endl; //this is totest the input only
  13. //need to verify for a positive number and makesure that letters are not used
  14. for (count = 0; count < input_1; count++)
  15. {
  16. for (count = 0; count < input_1; count++)
  17. cout<< " * " <<endl;
  18. }
  19. return 0;
  20. }
Help with Code Tags C++ Syntax (Toggle PlainText) Help with Code Tags C++ Syntax (Toggle PlainText)
 
  1. #include <iostream>
  2. #include <iomanip>
  3. using namespace std;
  4. int main()
  5. {
  6. int input_1;
  7. int count;
  8. input_1 = 0;
  9. count = 0;
  10. cout<< "Enter any positive number : ";
  11. cin>>input_1;
  12. cout<< input_1 << endl; //this is totest the input only
  13. //need to verify for a positive number and makesure that letters are not used
  14. for (count = 0; count < input_1; count++)
  15. {
  16. for (count = 0; count < input_1; count++)
  17. cout<< " * " <<endl;
  18. }
  19. return 0;
  20. }
 
  1. #include <iostream>
  2. #include <iomanip>
  3. using namespace std;
  4. int main()
  5. {
  6. int input_1;
  7. int count;
  8. input_1 = 0;
  9. count = 0;
  10. cout<< "Enter any positive number : ";
  11. cin>>input_1;
  12. cout<< input_1 << endl; //this is totest the input only
  13. //need to verify for a positive number and makesure that letters are not used
  14. for (count = 0; count < input_1; count++)
  15. {
  16. for (count = 0; count < input_1; count++)
  17. cout<< " * " <<endl;
  18. }
  19. return 0;
  20. }
#include <iostream> #include <iomanip> using namespace std; int main() { int input_1; int count; input_1 = 0; count = 0; cout<< "Enter any positive number : "; cin>>input_1; cout<< input_1 << endl; //this is totest the input only //need to verify for a positive number and makesure that letters are not used for (count = 0; count < input_1; count++) { for (count = 0; count < input_1; count++) cout<< " * " <<endl; } return 0; }

Explanation / Answer

please rate - thanks #include #include using namespace std; int main() { int input_1; int count,i; input_1 = 0; count = 0; cout>input_1; cout