SlideShare a Scribd company logo
Problem 3: Take array size from user as an input and insert those number of elements in the
array. Finally print the sum of all number inside array which are divisible by 3. [20 points]
Example: The size of int array is 7 (input from user) then insert values inside the array: Then the
output will be: 48

More Related Content

More from kingsandqueens3

Problem Gross Estate For each type of decedent- compute for the gross.pdf
Problem Gross Estate For each type of decedent- compute for the gross.pdfProblem Gross Estate For each type of decedent- compute for the gross.pdf
Problem Gross Estate For each type of decedent- compute for the gross.pdf
kingsandqueens3
 
Problem IV - Stock Investments Mal- Inc- acquired 25- of the outstandi.pdf
Problem IV - Stock Investments Mal- Inc- acquired 25- of the outstandi.pdfProblem IV - Stock Investments Mal- Inc- acquired 25- of the outstandi.pdf
Problem IV - Stock Investments Mal- Inc- acquired 25- of the outstandi.pdf
kingsandqueens3
 
Problem E Let X be the number of heads in n flips of a coin with proba.pdf
Problem E Let X be the number of heads in n flips of a coin with proba.pdfProblem E Let X be the number of heads in n flips of a coin with proba.pdf
Problem E Let X be the number of heads in n flips of a coin with proba.pdf
kingsandqueens3
 
Problem C- Huntington's disease results from the presence of a dominan.pdf
Problem C- Huntington's disease results from the presence of a dominan.pdfProblem C- Huntington's disease results from the presence of a dominan.pdf
Problem C- Huntington's disease results from the presence of a dominan.pdf
kingsandqueens3
 
Problem B (5 points)- A medical sociologist investigated the relations.pdf
Problem B (5 points)- A medical sociologist investigated the relations.pdfProblem B (5 points)- A medical sociologist investigated the relations.pdf
Problem B (5 points)- A medical sociologist investigated the relations.pdf
kingsandqueens3
 
Problem 9- (4 marks) Let symbol denote -exclusive or - that is pq(pq).pdf
Problem 9- (4 marks) Let symbol  denote -exclusive or - that is pq(pq).pdfProblem 9- (4 marks) Let symbol  denote -exclusive or - that is pq(pq).pdf
Problem 9- (4 marks) Let symbol denote -exclusive or - that is pq(pq).pdf
kingsandqueens3
 
Problem 6 (4 marks) Matt and Sandeep are partners with capital balance.pdf
Problem 6 (4 marks) Matt and Sandeep are partners with capital balance.pdfProblem 6 (4 marks) Matt and Sandeep are partners with capital balance.pdf
Problem 6 (4 marks) Matt and Sandeep are partners with capital balance.pdf
kingsandqueens3
 
Problem 6 The function -move- takes as input a list of numbers- Explai.pdf
Problem 6 The function -move- takes as input a list of numbers- Explai.pdfProblem 6 The function -move- takes as input a list of numbers- Explai.pdf
Problem 6 The function -move- takes as input a list of numbers- Explai.pdf
kingsandqueens3
 
Problem 5- Assume 5 points are placed into an equilateral triangle of.pdf
Problem 5- Assume 5 points are placed into an equilateral triangle of.pdfProblem 5- Assume 5 points are placed into an equilateral triangle of.pdf
Problem 5- Assume 5 points are placed into an equilateral triangle of.pdf
kingsandqueens3
 
Problem 4- Show that in the recurrence T(n)-0qn1max(T(q)+T(nq1))+n- T(.pdf
Problem 4- Show that in the recurrence T(n)-0qn1max(T(q)+T(nq1))+n- T(.pdfProblem 4- Show that in the recurrence T(n)-0qn1max(T(q)+T(nq1))+n- T(.pdf
Problem 4- Show that in the recurrence T(n)-0qn1max(T(q)+T(nq1))+n- T(.pdf
kingsandqueens3
 
Problem 4 An analyst has a dataset of n-1-000 observations of (Yi-Xi)-.pdf
Problem 4 An analyst has a dataset of n-1-000 observations of (Yi-Xi)-.pdfProblem 4 An analyst has a dataset of n-1-000 observations of (Yi-Xi)-.pdf
Problem 4 An analyst has a dataset of n-1-000 observations of (Yi-Xi)-.pdf
kingsandqueens3
 
Problem 4- Repeated Permutations a) In how many ways the letters of th.pdf
Problem 4- Repeated Permutations a) In how many ways the letters of th.pdfProblem 4- Repeated Permutations a) In how many ways the letters of th.pdf
Problem 4- Repeated Permutations a) In how many ways the letters of th.pdf
kingsandqueens3
 
Problem 4 Suppose that the returns to education is 13-4- per year for.pdf
Problem 4 Suppose that the returns to education is 13-4- per year for.pdfProblem 4 Suppose that the returns to education is 13-4- per year for.pdf
Problem 4 Suppose that the returns to education is 13-4- per year for.pdf
kingsandqueens3
 
Problem 4- Record the treasury stock transactions (given below) under.pdf
Problem 4- Record the treasury stock transactions (given below) under.pdfProblem 4- Record the treasury stock transactions (given below) under.pdf
Problem 4- Record the treasury stock transactions (given below) under.pdf
kingsandqueens3
 
problem 3-15 page 147.pdf
problem 3-15 page 147.pdfproblem 3-15 page 147.pdf
problem 3-15 page 147.pdf
kingsandqueens3
 
Problem 4-25B Basic transactions for three accounting cycles- perpetua.pdf
Problem 4-25B Basic transactions for three accounting cycles- perpetua.pdfProblem 4-25B Basic transactions for three accounting cycles- perpetua.pdf
Problem 4-25B Basic transactions for three accounting cycles- perpetua.pdf
kingsandqueens3
 
Problem 3-4 Income Statement (LO1) A firm's income statement included.pdf
Problem 3-4 Income Statement (LO1) A firm's income statement included.pdfProblem 3-4 Income Statement (LO1) A firm's income statement included.pdf
Problem 3-4 Income Statement (LO1) A firm's income statement included.pdf
kingsandqueens3
 
Problem 3- Consider the following cumulative probability function- and.pdf
Problem 3- Consider the following cumulative probability function- and.pdfProblem 3- Consider the following cumulative probability function- and.pdf
Problem 3- Consider the following cumulative probability function- and.pdf
kingsandqueens3
 

More from kingsandqueens3 (18)

Problem Gross Estate For each type of decedent- compute for the gross.pdf
Problem Gross Estate For each type of decedent- compute for the gross.pdfProblem Gross Estate For each type of decedent- compute for the gross.pdf
Problem Gross Estate For each type of decedent- compute for the gross.pdf
 
Problem IV - Stock Investments Mal- Inc- acquired 25- of the outstandi.pdf
Problem IV - Stock Investments Mal- Inc- acquired 25- of the outstandi.pdfProblem IV - Stock Investments Mal- Inc- acquired 25- of the outstandi.pdf
Problem IV - Stock Investments Mal- Inc- acquired 25- of the outstandi.pdf
 
Problem E Let X be the number of heads in n flips of a coin with proba.pdf
Problem E Let X be the number of heads in n flips of a coin with proba.pdfProblem E Let X be the number of heads in n flips of a coin with proba.pdf
Problem E Let X be the number of heads in n flips of a coin with proba.pdf
 
Problem C- Huntington's disease results from the presence of a dominan.pdf
Problem C- Huntington's disease results from the presence of a dominan.pdfProblem C- Huntington's disease results from the presence of a dominan.pdf
Problem C- Huntington's disease results from the presence of a dominan.pdf
 
Problem B (5 points)- A medical sociologist investigated the relations.pdf
Problem B (5 points)- A medical sociologist investigated the relations.pdfProblem B (5 points)- A medical sociologist investigated the relations.pdf
Problem B (5 points)- A medical sociologist investigated the relations.pdf
 
Problem 9- (4 marks) Let symbol denote -exclusive or - that is pq(pq).pdf
Problem 9- (4 marks) Let symbol  denote -exclusive or - that is pq(pq).pdfProblem 9- (4 marks) Let symbol  denote -exclusive or - that is pq(pq).pdf
Problem 9- (4 marks) Let symbol denote -exclusive or - that is pq(pq).pdf
 
Problem 6 (4 marks) Matt and Sandeep are partners with capital balance.pdf
Problem 6 (4 marks) Matt and Sandeep are partners with capital balance.pdfProblem 6 (4 marks) Matt and Sandeep are partners with capital balance.pdf
Problem 6 (4 marks) Matt and Sandeep are partners with capital balance.pdf
 
Problem 6 The function -move- takes as input a list of numbers- Explai.pdf
Problem 6 The function -move- takes as input a list of numbers- Explai.pdfProblem 6 The function -move- takes as input a list of numbers- Explai.pdf
Problem 6 The function -move- takes as input a list of numbers- Explai.pdf
 
Problem 5- Assume 5 points are placed into an equilateral triangle of.pdf
Problem 5- Assume 5 points are placed into an equilateral triangle of.pdfProblem 5- Assume 5 points are placed into an equilateral triangle of.pdf
Problem 5- Assume 5 points are placed into an equilateral triangle of.pdf
 
Problem 4- Show that in the recurrence T(n)-0qn1max(T(q)+T(nq1))+n- T(.pdf
Problem 4- Show that in the recurrence T(n)-0qn1max(T(q)+T(nq1))+n- T(.pdfProblem 4- Show that in the recurrence T(n)-0qn1max(T(q)+T(nq1))+n- T(.pdf
Problem 4- Show that in the recurrence T(n)-0qn1max(T(q)+T(nq1))+n- T(.pdf
 
Problem 4 An analyst has a dataset of n-1-000 observations of (Yi-Xi)-.pdf
Problem 4 An analyst has a dataset of n-1-000 observations of (Yi-Xi)-.pdfProblem 4 An analyst has a dataset of n-1-000 observations of (Yi-Xi)-.pdf
Problem 4 An analyst has a dataset of n-1-000 observations of (Yi-Xi)-.pdf
 
Problem 4- Repeated Permutations a) In how many ways the letters of th.pdf
Problem 4- Repeated Permutations a) In how many ways the letters of th.pdfProblem 4- Repeated Permutations a) In how many ways the letters of th.pdf
Problem 4- Repeated Permutations a) In how many ways the letters of th.pdf
 
Problem 4 Suppose that the returns to education is 13-4- per year for.pdf
Problem 4 Suppose that the returns to education is 13-4- per year for.pdfProblem 4 Suppose that the returns to education is 13-4- per year for.pdf
Problem 4 Suppose that the returns to education is 13-4- per year for.pdf
 
Problem 4- Record the treasury stock transactions (given below) under.pdf
Problem 4- Record the treasury stock transactions (given below) under.pdfProblem 4- Record the treasury stock transactions (given below) under.pdf
Problem 4- Record the treasury stock transactions (given below) under.pdf
 
problem 3-15 page 147.pdf
problem 3-15 page 147.pdfproblem 3-15 page 147.pdf
problem 3-15 page 147.pdf
 
Problem 4-25B Basic transactions for three accounting cycles- perpetua.pdf
Problem 4-25B Basic transactions for three accounting cycles- perpetua.pdfProblem 4-25B Basic transactions for three accounting cycles- perpetua.pdf
Problem 4-25B Basic transactions for three accounting cycles- perpetua.pdf
 
Problem 3-4 Income Statement (LO1) A firm's income statement included.pdf
Problem 3-4 Income Statement (LO1) A firm's income statement included.pdfProblem 3-4 Income Statement (LO1) A firm's income statement included.pdf
Problem 3-4 Income Statement (LO1) A firm's income statement included.pdf
 
Problem 3- Consider the following cumulative probability function- and.pdf
Problem 3- Consider the following cumulative probability function- and.pdfProblem 3- Consider the following cumulative probability function- and.pdf
Problem 3- Consider the following cumulative probability function- and.pdf
 

Recently uploaded

MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
paigestewart1632
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 

Recently uploaded (20)

MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 

Problem 3- Take array size from user as an input and insert those numb.pdf

  • 1. Problem 3: Take array size from user as an input and insert those number of elements in the array. Finally print the sum of all number inside array which are divisible by 3. [20 points] Example: The size of int array is 7 (input from user) then insert values inside the array: Then the output will be: 48