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 (18)

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

Recently uploaded (20)

PDF
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
PPTX
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
PDF
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
PPTX
HYDROCEPHALUS: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
PPTX
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
PPTX
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
PDF
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
PDF
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PDF
SSHS-2025-PKLP_Quarter-1-Dr.-Kerby-Alvarez.pdf
AishahSangcopan1
 
PDF
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
PDF
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
PPTX
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
PPTX
How to Set Maximum Difference Odoo 18 POS
Celine George
 
PPTX
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
PPTX
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
PDF
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
PPT
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
PPTX
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
PDF
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
HYDROCEPHALUS: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
SSHS-2025-PKLP_Quarter-1-Dr.-Kerby-Alvarez.pdf
AishahSangcopan1
 
CONCURSO DE POESIA “POETUFAS – PASSOS SUAVES PELO VERSO.pdf
Colégio Santa Teresinha
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
How to Set Maximum Difference Odoo 18 POS
Celine George
 
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
Ad

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