SlideShare a Scribd company logo
1 of 2
//The program is suposed to display the pattern both plus and minus. I have gotten the plus part
correct but not the minus of the same pattern.
+
++
+++
++++
+++++
++++++
+++++++
++++++++
+++++++++
[Program finished]
(The minus should display)
+++++++++
++++++++
+++++++
++++++
+++++
++++
+++
++
+
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int num=0;
int num2=10;
for (int i=0; i<10; i++)
{ // Remove returnStar(number,jj);
//number[i]=number[i]/100;
for(int j=0; j<i; j++)
{
cout<<"+";
}
cout<<endl;
}
for (int i=10; i<0; i--)
{ // Remove returnStar(number,jj);
//number[i]=number[i]/100;
for(int j=10; j<i; j--)
{
cout<<"+";
}
cout<<endl;
}
return 0;
}

More Related Content

More from astephen4

1) The artificial intelligence algorithms that suggest or display cont.docx
1) The artificial intelligence algorithms that suggest or display cont.docx1) The artificial intelligence algorithms that suggest or display cont.docx
1) The artificial intelligence algorithms that suggest or display cont.docx
astephen4
 
1) Maria Gomez is a 24 y-o female admitted to the hospital for painful.docx
1) Maria Gomez is a 24 y-o female admitted to the hospital for painful.docx1) Maria Gomez is a 24 y-o female admitted to the hospital for painful.docx
1) Maria Gomez is a 24 y-o female admitted to the hospital for painful.docx
astephen4
 
1) how do you account for the high productivity of the cage workers pr.docx
1) how do you account for the high productivity of the cage workers pr.docx1) how do you account for the high productivity of the cage workers pr.docx
1) how do you account for the high productivity of the cage workers pr.docx
astephen4
 

More from astephen4 (20)

1) Which split came first- G or H- 2) If a trait changed on the line b.docx
1) Which split came first- G or H- 2) If a trait changed on the line b.docx1) Which split came first- G or H- 2) If a trait changed on the line b.docx
1) Which split came first- G or H- 2) If a trait changed on the line b.docx
 
1) What was the average number of days people eat cheese weekly- How d.docx
1) What was the average number of days people eat cheese weekly- How d.docx1) What was the average number of days people eat cheese weekly- How d.docx
1) What was the average number of days people eat cheese weekly- How d.docx
 
1) What us Microser vice arclitecture- In which ty ee of projects- it.docx
1) What us Microser vice arclitecture- In which ty ee of projects- it.docx1) What us Microser vice arclitecture- In which ty ee of projects- it.docx
1) What us Microser vice arclitecture- In which ty ee of projects- it.docx
 
1) The three proximate determinants of income or GDP are- a) Technolog.docx
1) The three proximate determinants of income or GDP are- a) Technolog.docx1) The three proximate determinants of income or GDP are- a) Technolog.docx
1) The three proximate determinants of income or GDP are- a) Technolog.docx
 
1) The artificial intelligence algorithms that suggest or display cont.docx
1) The artificial intelligence algorithms that suggest or display cont.docx1) The artificial intelligence algorithms that suggest or display cont.docx
1) The artificial intelligence algorithms that suggest or display cont.docx
 
1) Pyruvic acid has a pKa value of 2-5- The conjugate base is pyruvate.docx
1) Pyruvic acid has a pKa value of 2-5- The conjugate base is pyruvate.docx1) Pyruvic acid has a pKa value of 2-5- The conjugate base is pyruvate.docx
1) Pyruvic acid has a pKa value of 2-5- The conjugate base is pyruvate.docx
 
1) Maria Gomez is a 24 y-o female admitted to the hospital for painful.docx
1) Maria Gomez is a 24 y-o female admitted to the hospital for painful.docx1) Maria Gomez is a 24 y-o female admitted to the hospital for painful.docx
1) Maria Gomez is a 24 y-o female admitted to the hospital for painful.docx
 
-3- The emission of particles from a radioactive mass constitutes a Po.docx
-3- The emission of particles from a radioactive mass constitutes a Po.docx-3- The emission of particles from a radioactive mass constitutes a Po.docx
-3- The emission of particles from a radioactive mass constitutes a Po.docx
 
-4- Let f(n) count the number of ways of dissecting a 2n-gon into 4 -s.docx
-4- Let f(n) count the number of ways of dissecting a 2n-gon into 4 -s.docx-4- Let f(n) count the number of ways of dissecting a 2n-gon into 4 -s.docx
-4- Let f(n) count the number of ways of dissecting a 2n-gon into 4 -s.docx
 
1) how do you account for the high productivity of the cage workers pr.docx
1) how do you account for the high productivity of the cage workers pr.docx1) how do you account for the high productivity of the cage workers pr.docx
1) how do you account for the high productivity of the cage workers pr.docx
 
-2 Marks- What is the difference between real and nominal interest r.docx
-2 Marks-   What is the difference between real and nominal interest r.docx-2 Marks-   What is the difference between real and nominal interest r.docx
-2 Marks- What is the difference between real and nominal interest r.docx
 
1) How epidemiology differs from clinical medicine- a- Epidemiology di.docx
1) How epidemiology differs from clinical medicine- a- Epidemiology di.docx1) How epidemiology differs from clinical medicine- a- Epidemiology di.docx
1) How epidemiology differs from clinical medicine- a- Epidemiology di.docx
 
1) Giving the DFD below- indicate which of the followings are not corr.docx
1) Giving the DFD below- indicate which of the followings are not corr.docx1) Giving the DFD below- indicate which of the followings are not corr.docx
1) Giving the DFD below- indicate which of the followings are not corr.docx
 
1) How does the green algae Chlamydomonas reproduce when conditions ar.docx
1) How does the green algae Chlamydomonas reproduce when conditions ar.docx1) How does the green algae Chlamydomonas reproduce when conditions ar.docx
1) How does the green algae Chlamydomonas reproduce when conditions ar.docx
 
1) Globalization provides financial institutions with more opportuniti.docx
1) Globalization provides financial institutions with more opportuniti.docx1) Globalization provides financial institutions with more opportuniti.docx
1) Globalization provides financial institutions with more opportuniti.docx
 
-1n-2II y.docx
-1n-2II y.docx-1n-2II y.docx
-1n-2II y.docx
 
-10 points- The following is the state diagram of a DFA- M1- Answer th.docx
-10 points- The following is the state diagram of a DFA- M1- Answer th.docx-10 points- The following is the state diagram of a DFA- M1- Answer th.docx
-10 points- The following is the state diagram of a DFA- M1- Answer th.docx
 
1) Which CIS controls could you use for Linux- Use the CIS Sub Contr.docx
1)  Which CIS controls could you use for Linux-  Use the CIS Sub Contr.docx1)  Which CIS controls could you use for Linux-  Use the CIS Sub Contr.docx
1) Which CIS controls could you use for Linux- Use the CIS Sub Contr.docx
 
-1-2 Points- DEVORESTAT9 1-1-006- discuss several different sampling m.docx
-1-2 Points- DEVORESTAT9 1-1-006- discuss several different sampling m.docx-1-2 Points- DEVORESTAT9 1-1-006- discuss several different sampling m.docx
-1-2 Points- DEVORESTAT9 1-1-006- discuss several different sampling m.docx
 
1 What are the complementary assets- Why are complementary assets esse.docx
1 What are the complementary assets- Why are complementary assets esse.docx1 What are the complementary assets- Why are complementary assets esse.docx
1 What are the complementary assets- Why are complementary assets esse.docx
 

Recently uploaded

會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
中 央社
 
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfContoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
cupulin
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
EADTU
 
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MysoreMuleSoftMeetup
 

Recently uploaded (20)

會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfContoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
 
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxAnalyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical Principles
 
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDF
 
The Liver & Gallbladder (Anatomy & Physiology).pptx
The Liver &  Gallbladder (Anatomy & Physiology).pptxThe Liver &  Gallbladder (Anatomy & Physiology).pptx
The Liver & Gallbladder (Anatomy & Physiology).pptx
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 

--The program is suposed to display the pattern both plus and minus- I.docx

  • 1. //The program is suposed to display the pattern both plus and minus. I have gotten the plus part correct but not the minus of the same pattern. + ++ +++ ++++ +++++ ++++++ +++++++ ++++++++ +++++++++ [Program finished] (The minus should display) +++++++++ ++++++++ +++++++ ++++++ +++++ ++++ +++ ++ + #include <iostream> using namespace std; int main(int argc, char *argv[]) { int num=0; int num2=10; for (int i=0; i<10; i++) { // Remove returnStar(number,jj); //number[i]=number[i]/100; for(int j=0; j<i; j++) {
  • 2. cout<<"+"; } cout<<endl; } for (int i=10; i<0; i--) { // Remove returnStar(number,jj); //number[i]=number[i]/100; for(int j=10; j<i; j--) { cout<<"+"; } cout<<endl; } return 0; }