SlideShare a Scribd company logo
1 of 1
Download to read offline
please need help, in c.
Write a program that multiplies all the values stored in an array.
Solution
int main()
{
//initializing an array wih four elements
int iptAry[4]={2,6,5,8};
//initializing total multiplication varibale.
int ttlMultiplication = 0;
//iterating over the loop to entire array to multiply
for(int i = 0; i < iptAry.length; i++)
{
ttlMultiplication = ttlMultiplication *iptAry[i];
}
//printing the multiplicatio value
printf("The multiplication is = ", ttlMultiplication);
}

More Related Content

More from arsmobiles

Define nonconcordant variation Why does nonconcordant variation mak.pdf
Define nonconcordant variation Why does nonconcordant variation mak.pdfDefine nonconcordant variation Why does nonconcordant variation mak.pdf
Define nonconcordant variation Why does nonconcordant variation mak.pdfarsmobiles
 
Describe the operation of a tubular bowl centrifugeSolutionTub.pdf
Describe the operation of a tubular bowl centrifugeSolutionTub.pdfDescribe the operation of a tubular bowl centrifugeSolutionTub.pdf
Describe the operation of a tubular bowl centrifugeSolutionTub.pdfarsmobiles
 
Could you help me with this question Thanks so much!Let T be an e.pdf
Could you help me with this question Thanks so much!Let T be an e.pdfCould you help me with this question Thanks so much!Let T be an e.pdf
Could you help me with this question Thanks so much!Let T be an e.pdfarsmobiles
 
Briefly discuss Philippa Foot’s contributions to virtue theory.S.pdf
Briefly discuss Philippa Foot’s contributions to virtue theory.S.pdfBriefly discuss Philippa Foot’s contributions to virtue theory.S.pdf
Briefly discuss Philippa Foot’s contributions to virtue theory.S.pdfarsmobiles
 
List for a company you either work or are familiar with, the interna.pdf
List for a company you either work or are familiar with, the interna.pdfList for a company you either work or are familiar with, the interna.pdf
List for a company you either work or are familiar with, the interna.pdfarsmobiles
 
Write a C program that uses a recursive function to print a triangle .pdf
Write a C program that uses a recursive function to print a triangle .pdfWrite a C program that uses a recursive function to print a triangle .pdf
Write a C program that uses a recursive function to print a triangle .pdfarsmobiles
 
Which avenue of research is least likely to reveal whether asexual or.pdf
Which avenue of research is least likely to reveal whether asexual or.pdfWhich avenue of research is least likely to reveal whether asexual or.pdf
Which avenue of research is least likely to reveal whether asexual or.pdfarsmobiles
 
When testing the difference between two population means, the varian.pdf
When testing the difference between two population means, the varian.pdfWhen testing the difference between two population means, the varian.pdf
When testing the difference between two population means, the varian.pdfarsmobiles
 
IT Project Management1. Please compare and contrast a traditional .pdf
IT Project Management1. Please compare and contrast a traditional .pdfIT Project Management1. Please compare and contrast a traditional .pdf
IT Project Management1. Please compare and contrast a traditional .pdfarsmobiles
 
Whats the relationship between DNA and RNA Whats the relat.pdf
Whats the relationship between DNA and RNA Whats the relat.pdfWhats the relationship between DNA and RNA Whats the relat.pdf
Whats the relationship between DNA and RNA Whats the relat.pdfarsmobiles
 
What does it mean to destroy something at the molecular level in ter.pdf
What does it mean to destroy something at the molecular level in ter.pdfWhat does it mean to destroy something at the molecular level in ter.pdf
What does it mean to destroy something at the molecular level in ter.pdfarsmobiles
 
What is a rain shadow, and why does it happenSolutionThe warm.pdf
What is a rain shadow, and why does it happenSolutionThe warm.pdfWhat is a rain shadow, and why does it happenSolutionThe warm.pdf
What is a rain shadow, and why does it happenSolutionThe warm.pdfarsmobiles
 
Use transformations to graph this function. (Do this on paper. Your t.pdf
Use transformations to graph this function. (Do this on paper. Your t.pdfUse transformations to graph this function. (Do this on paper. Your t.pdf
Use transformations to graph this function. (Do this on paper. Your t.pdfarsmobiles
 
Understand how radioactive isotopes are used in dating fossilsSo.pdf
Understand how radioactive isotopes are used in dating fossilsSo.pdfUnderstand how radioactive isotopes are used in dating fossilsSo.pdf
Understand how radioactive isotopes are used in dating fossilsSo.pdfarsmobiles
 
umbrella term for all healthcare plans that focus on reducing the cos.pdf
umbrella term for all healthcare plans that focus on reducing the cos.pdfumbrella term for all healthcare plans that focus on reducing the cos.pdf
umbrella term for all healthcare plans that focus on reducing the cos.pdfarsmobiles
 
) Code the following class. Hopefully the method names clearly imply.pdf
) Code the following class. Hopefully the method names clearly imply.pdf) Code the following class. Hopefully the method names clearly imply.pdf
) Code the following class. Hopefully the method names clearly imply.pdfarsmobiles
 
The rate of diffusion (J) depends on several physical factors. Brief.pdf
The rate of diffusion (J) depends on several physical factors. Brief.pdfThe rate of diffusion (J) depends on several physical factors. Brief.pdf
The rate of diffusion (J) depends on several physical factors. Brief.pdfarsmobiles
 
The mutations that make HIV resistant to specific drugs are usually..pdf
The mutations that make HIV resistant to specific drugs are usually..pdfThe mutations that make HIV resistant to specific drugs are usually..pdf
The mutations that make HIV resistant to specific drugs are usually..pdfarsmobiles
 
The low density of ice makes it ineffective at insulating water from .pdf
The low density of ice makes it ineffective at insulating water from .pdfThe low density of ice makes it ineffective at insulating water from .pdf
The low density of ice makes it ineffective at insulating water from .pdfarsmobiles
 
The graph represents a correspondence between x and y. Determine whet.pdf
The graph represents a correspondence between x and y. Determine whet.pdfThe graph represents a correspondence between x and y. Determine whet.pdf
The graph represents a correspondence between x and y. Determine whet.pdfarsmobiles
 

More from arsmobiles (20)

Define nonconcordant variation Why does nonconcordant variation mak.pdf
Define nonconcordant variation Why does nonconcordant variation mak.pdfDefine nonconcordant variation Why does nonconcordant variation mak.pdf
Define nonconcordant variation Why does nonconcordant variation mak.pdf
 
Describe the operation of a tubular bowl centrifugeSolutionTub.pdf
Describe the operation of a tubular bowl centrifugeSolutionTub.pdfDescribe the operation of a tubular bowl centrifugeSolutionTub.pdf
Describe the operation of a tubular bowl centrifugeSolutionTub.pdf
 
Could you help me with this question Thanks so much!Let T be an e.pdf
Could you help me with this question Thanks so much!Let T be an e.pdfCould you help me with this question Thanks so much!Let T be an e.pdf
Could you help me with this question Thanks so much!Let T be an e.pdf
 
Briefly discuss Philippa Foot’s contributions to virtue theory.S.pdf
Briefly discuss Philippa Foot’s contributions to virtue theory.S.pdfBriefly discuss Philippa Foot’s contributions to virtue theory.S.pdf
Briefly discuss Philippa Foot’s contributions to virtue theory.S.pdf
 
List for a company you either work or are familiar with, the interna.pdf
List for a company you either work or are familiar with, the interna.pdfList for a company you either work or are familiar with, the interna.pdf
List for a company you either work or are familiar with, the interna.pdf
 
Write a C program that uses a recursive function to print a triangle .pdf
Write a C program that uses a recursive function to print a triangle .pdfWrite a C program that uses a recursive function to print a triangle .pdf
Write a C program that uses a recursive function to print a triangle .pdf
 
Which avenue of research is least likely to reveal whether asexual or.pdf
Which avenue of research is least likely to reveal whether asexual or.pdfWhich avenue of research is least likely to reveal whether asexual or.pdf
Which avenue of research is least likely to reveal whether asexual or.pdf
 
When testing the difference between two population means, the varian.pdf
When testing the difference between two population means, the varian.pdfWhen testing the difference between two population means, the varian.pdf
When testing the difference between two population means, the varian.pdf
 
IT Project Management1. Please compare and contrast a traditional .pdf
IT Project Management1. Please compare and contrast a traditional .pdfIT Project Management1. Please compare and contrast a traditional .pdf
IT Project Management1. Please compare and contrast a traditional .pdf
 
Whats the relationship between DNA and RNA Whats the relat.pdf
Whats the relationship between DNA and RNA Whats the relat.pdfWhats the relationship between DNA and RNA Whats the relat.pdf
Whats the relationship between DNA and RNA Whats the relat.pdf
 
What does it mean to destroy something at the molecular level in ter.pdf
What does it mean to destroy something at the molecular level in ter.pdfWhat does it mean to destroy something at the molecular level in ter.pdf
What does it mean to destroy something at the molecular level in ter.pdf
 
What is a rain shadow, and why does it happenSolutionThe warm.pdf
What is a rain shadow, and why does it happenSolutionThe warm.pdfWhat is a rain shadow, and why does it happenSolutionThe warm.pdf
What is a rain shadow, and why does it happenSolutionThe warm.pdf
 
Use transformations to graph this function. (Do this on paper. Your t.pdf
Use transformations to graph this function. (Do this on paper. Your t.pdfUse transformations to graph this function. (Do this on paper. Your t.pdf
Use transformations to graph this function. (Do this on paper. Your t.pdf
 
Understand how radioactive isotopes are used in dating fossilsSo.pdf
Understand how radioactive isotopes are used in dating fossilsSo.pdfUnderstand how radioactive isotopes are used in dating fossilsSo.pdf
Understand how radioactive isotopes are used in dating fossilsSo.pdf
 
umbrella term for all healthcare plans that focus on reducing the cos.pdf
umbrella term for all healthcare plans that focus on reducing the cos.pdfumbrella term for all healthcare plans that focus on reducing the cos.pdf
umbrella term for all healthcare plans that focus on reducing the cos.pdf
 
) Code the following class. Hopefully the method names clearly imply.pdf
) Code the following class. Hopefully the method names clearly imply.pdf) Code the following class. Hopefully the method names clearly imply.pdf
) Code the following class. Hopefully the method names clearly imply.pdf
 
The rate of diffusion (J) depends on several physical factors. Brief.pdf
The rate of diffusion (J) depends on several physical factors. Brief.pdfThe rate of diffusion (J) depends on several physical factors. Brief.pdf
The rate of diffusion (J) depends on several physical factors. Brief.pdf
 
The mutations that make HIV resistant to specific drugs are usually..pdf
The mutations that make HIV resistant to specific drugs are usually..pdfThe mutations that make HIV resistant to specific drugs are usually..pdf
The mutations that make HIV resistant to specific drugs are usually..pdf
 
The low density of ice makes it ineffective at insulating water from .pdf
The low density of ice makes it ineffective at insulating water from .pdfThe low density of ice makes it ineffective at insulating water from .pdf
The low density of ice makes it ineffective at insulating water from .pdf
 
The graph represents a correspondence between x and y. Determine whet.pdf
The graph represents a correspondence between x and y. Determine whet.pdfThe graph represents a correspondence between x and y. Determine whet.pdf
The graph represents a correspondence between x and y. Determine whet.pdf
 

Recently uploaded

Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxAdelaideRefugio
 
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 PDFVivekanand Anglo Vedic Academy
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnershipsexpandedwebsite
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................MirzaAbrarBaig5
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesPooky Knightsmith
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptNishitharanjan Rout
 
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...EduSkills OECD
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppCeline George
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024Borja Sotomayor
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesAmanpreetKaur157993
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSAnaAcapella
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17Celine George
 
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportDenish Jangid
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽中 央社
 
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Ư...Nguyen Thanh Tu Collection
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfPondicherry University
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code ExamplesPeter Brusilovsky
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi RajagopalEADTU
 
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...Gary Wood
 

Recently uploaded (20)

Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
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
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical Principles
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
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...
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge App
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategies
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17
 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
 
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
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Ư...
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopal
 
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...
 

please need help, in c. Write a program that multiplies all the va.pdf

  • 1. please need help, in c. Write a program that multiplies all the values stored in an array. Solution int main() { //initializing an array wih four elements int iptAry[4]={2,6,5,8}; //initializing total multiplication varibale. int ttlMultiplication = 0; //iterating over the loop to entire array to multiply for(int i = 0; i < iptAry.length; i++) { ttlMultiplication = ttlMultiplication *iptAry[i]; } //printing the multiplicatio value printf("The multiplication is = ", ttlMultiplication); }