SlideShare a Scribd company logo
Write a recursive function called DigitCount() that takes a positive integer as a parameter and
returns the number of digits in the integer. Hint: The number of digits increases by 1 whenever the
input number is divided by 10.
Ex: If the input is:
the function DigitCount() returns and the program outputs:
IN C CODE

More Related Content

More from abhitravel01

T F 1 A project is a set of activities onetime something.pdf
T F 1 A project is a set of activities onetime something.pdfT F 1 A project is a set of activities onetime something.pdf
T F 1 A project is a set of activities onetime something.pdf
abhitravel01
 
subsequent days 500 day What is the total cost of the pro.pdf
subsequent days 500 day What is the total cost of the pro.pdfsubsequent days 500 day What is the total cost of the pro.pdf
subsequent days 500 day What is the total cost of the pro.pdf
abhitravel01
 
qs1 1 Let X1Xn be a random sample from a distribution wi.pdf
qs1 1 Let X1Xn be a random sample from a distribution wi.pdfqs1 1 Let X1Xn be a random sample from a distribution wi.pdf
qs1 1 Let X1Xn be a random sample from a distribution wi.pdf
abhitravel01
 
Q1 Using the table below answer the following questions D.pdf
Q1 Using the table below answer the following questions D.pdfQ1 Using the table below answer the following questions D.pdf
Q1 Using the table below answer the following questions D.pdf
abhitravel01
 
If X is a continuous random variable with probability densit.pdf
If X is a continuous random variable with probability densit.pdfIf X is a continuous random variable with probability densit.pdf
If X is a continuous random variable with probability densit.pdf
abhitravel01
 
Pozisyon Analizi Anketinin PAQ bir avantaj udur PAQ ara.pdf
Pozisyon Analizi Anketinin PAQ bir avantaj udur   PAQ ara.pdfPozisyon Analizi Anketinin PAQ bir avantaj udur   PAQ ara.pdf
Pozisyon Analizi Anketinin PAQ bir avantaj udur PAQ ara.pdf
abhitravel01
 
Mr Hollywood opened a health food consulting business on Oc.pdf
Mr Hollywood opened a health food consulting business on Oc.pdfMr Hollywood opened a health food consulting business on Oc.pdf
Mr Hollywood opened a health food consulting business on Oc.pdf
abhitravel01
 
Metaphase Anaphase Telophase Multiple Choice Answers 4.pdf
Metaphase Anaphase Telophase Multiple Choice Answers 4.pdfMetaphase Anaphase Telophase Multiple Choice Answers 4.pdf
Metaphase Anaphase Telophase Multiple Choice Answers 4.pdf
abhitravel01
 
mitosis and division cytoplasm a functions in sexual reprodu.pdf
mitosis and division cytoplasm a functions in sexual reprodu.pdfmitosis and division cytoplasm a functions in sexual reprodu.pdf
mitosis and division cytoplasm a functions in sexual reprodu.pdf
abhitravel01
 
Ltfen aadaki makaleyi kendi kelimelerinizle zetleyin intih.pdf
Ltfen aadaki makaleyi kendi kelimelerinizle zetleyin intih.pdfLtfen aadaki makaleyi kendi kelimelerinizle zetleyin intih.pdf
Ltfen aadaki makaleyi kendi kelimelerinizle zetleyin intih.pdf
abhitravel01
 
Makale Bulgular Her bir makalenin bulgular nelerdir ve sz .pdf
Makale Bulgular  Her bir makalenin bulgular nelerdir ve sz .pdfMakale Bulgular  Her bir makalenin bulgular nelerdir ve sz .pdf
Makale Bulgular Her bir makalenin bulgular nelerdir ve sz .pdf
abhitravel01
 
List and decribe the 5 components of emotional intelligence.pdf
List and decribe the 5 components of emotional intelligence.pdfList and decribe the 5 components of emotional intelligence.pdf
List and decribe the 5 components of emotional intelligence.pdf
abhitravel01
 
In the pepsin pathway if there was a large buildup of peps.pdf
In the pepsin pathway if there was a large buildup of peps.pdfIn the pepsin pathway if there was a large buildup of peps.pdf
In the pepsin pathway if there was a large buildup of peps.pdf
abhitravel01
 
Given the following Balance Sheets and the Income Statement .pdf
Given the following Balance Sheets and the Income Statement .pdfGiven the following Balance Sheets and the Income Statement .pdf
Given the following Balance Sheets and the Income Statement .pdf
abhitravel01
 
Imagine that you are a contestant on the classic television .pdf
Imagine that you are a contestant on the classic television .pdfImagine that you are a contestant on the classic television .pdf
Imagine that you are a contestant on the classic television .pdf
abhitravel01
 
Jerry tiene una utilidad dada por u x 1 x 2 3x 1 +5x 2.pdf
Jerry tiene una utilidad dada por u x 1 x 2   3x 1 +5x 2.pdfJerry tiene una utilidad dada por u x 1 x 2   3x 1 +5x 2.pdf
Jerry tiene una utilidad dada por u x 1 x 2 3x 1 +5x 2.pdf
abhitravel01
 
I NEED HELP DCOM 224 IAM is used to identify and authen.pdf
I NEED HELP DCOM 224   IAM is used to identify and authen.pdfI NEED HELP DCOM 224   IAM is used to identify and authen.pdf
I NEED HELP DCOM 224 IAM is used to identify and authen.pdf
abhitravel01
 
gwp1p1pmax0ypxpTw.pdf
gwp1p1pmax0ypxpTw.pdfgwp1p1pmax0ypxpTw.pdf
gwp1p1pmax0ypxpTw.pdf
abhitravel01
 
Gibsal Suaneis Practices Clepter 5 iocaripe Thery are con.pdf
Gibsal Suaneis Practices  Clepter 5 iocaripe Thery are con.pdfGibsal Suaneis Practices  Clepter 5 iocaripe Thery are con.pdf
Gibsal Suaneis Practices Clepter 5 iocaripe Thery are con.pdf
abhitravel01
 
Example 214 Professor May B Right often has her facts wro.pdf
Example 214 Professor May B Right often has her facts wro.pdfExample 214 Professor May B Right often has her facts wro.pdf
Example 214 Professor May B Right often has her facts wro.pdf
abhitravel01
 

More from abhitravel01 (20)

T F 1 A project is a set of activities onetime something.pdf
T F 1 A project is a set of activities onetime something.pdfT F 1 A project is a set of activities onetime something.pdf
T F 1 A project is a set of activities onetime something.pdf
 
subsequent days 500 day What is the total cost of the pro.pdf
subsequent days 500 day What is the total cost of the pro.pdfsubsequent days 500 day What is the total cost of the pro.pdf
subsequent days 500 day What is the total cost of the pro.pdf
 
qs1 1 Let X1Xn be a random sample from a distribution wi.pdf
qs1 1 Let X1Xn be a random sample from a distribution wi.pdfqs1 1 Let X1Xn be a random sample from a distribution wi.pdf
qs1 1 Let X1Xn be a random sample from a distribution wi.pdf
 
Q1 Using the table below answer the following questions D.pdf
Q1 Using the table below answer the following questions D.pdfQ1 Using the table below answer the following questions D.pdf
Q1 Using the table below answer the following questions D.pdf
 
If X is a continuous random variable with probability densit.pdf
If X is a continuous random variable with probability densit.pdfIf X is a continuous random variable with probability densit.pdf
If X is a continuous random variable with probability densit.pdf
 
Pozisyon Analizi Anketinin PAQ bir avantaj udur PAQ ara.pdf
Pozisyon Analizi Anketinin PAQ bir avantaj udur   PAQ ara.pdfPozisyon Analizi Anketinin PAQ bir avantaj udur   PAQ ara.pdf
Pozisyon Analizi Anketinin PAQ bir avantaj udur PAQ ara.pdf
 
Mr Hollywood opened a health food consulting business on Oc.pdf
Mr Hollywood opened a health food consulting business on Oc.pdfMr Hollywood opened a health food consulting business on Oc.pdf
Mr Hollywood opened a health food consulting business on Oc.pdf
 
Metaphase Anaphase Telophase Multiple Choice Answers 4.pdf
Metaphase Anaphase Telophase Multiple Choice Answers 4.pdfMetaphase Anaphase Telophase Multiple Choice Answers 4.pdf
Metaphase Anaphase Telophase Multiple Choice Answers 4.pdf
 
mitosis and division cytoplasm a functions in sexual reprodu.pdf
mitosis and division cytoplasm a functions in sexual reprodu.pdfmitosis and division cytoplasm a functions in sexual reprodu.pdf
mitosis and division cytoplasm a functions in sexual reprodu.pdf
 
Ltfen aadaki makaleyi kendi kelimelerinizle zetleyin intih.pdf
Ltfen aadaki makaleyi kendi kelimelerinizle zetleyin intih.pdfLtfen aadaki makaleyi kendi kelimelerinizle zetleyin intih.pdf
Ltfen aadaki makaleyi kendi kelimelerinizle zetleyin intih.pdf
 
Makale Bulgular Her bir makalenin bulgular nelerdir ve sz .pdf
Makale Bulgular  Her bir makalenin bulgular nelerdir ve sz .pdfMakale Bulgular  Her bir makalenin bulgular nelerdir ve sz .pdf
Makale Bulgular Her bir makalenin bulgular nelerdir ve sz .pdf
 
List and decribe the 5 components of emotional intelligence.pdf
List and decribe the 5 components of emotional intelligence.pdfList and decribe the 5 components of emotional intelligence.pdf
List and decribe the 5 components of emotional intelligence.pdf
 
In the pepsin pathway if there was a large buildup of peps.pdf
In the pepsin pathway if there was a large buildup of peps.pdfIn the pepsin pathway if there was a large buildup of peps.pdf
In the pepsin pathway if there was a large buildup of peps.pdf
 
Given the following Balance Sheets and the Income Statement .pdf
Given the following Balance Sheets and the Income Statement .pdfGiven the following Balance Sheets and the Income Statement .pdf
Given the following Balance Sheets and the Income Statement .pdf
 
Imagine that you are a contestant on the classic television .pdf
Imagine that you are a contestant on the classic television .pdfImagine that you are a contestant on the classic television .pdf
Imagine that you are a contestant on the classic television .pdf
 
Jerry tiene una utilidad dada por u x 1 x 2 3x 1 +5x 2.pdf
Jerry tiene una utilidad dada por u x 1 x 2   3x 1 +5x 2.pdfJerry tiene una utilidad dada por u x 1 x 2   3x 1 +5x 2.pdf
Jerry tiene una utilidad dada por u x 1 x 2 3x 1 +5x 2.pdf
 
I NEED HELP DCOM 224 IAM is used to identify and authen.pdf
I NEED HELP DCOM 224   IAM is used to identify and authen.pdfI NEED HELP DCOM 224   IAM is used to identify and authen.pdf
I NEED HELP DCOM 224 IAM is used to identify and authen.pdf
 
gwp1p1pmax0ypxpTw.pdf
gwp1p1pmax0ypxpTw.pdfgwp1p1pmax0ypxpTw.pdf
gwp1p1pmax0ypxpTw.pdf
 
Gibsal Suaneis Practices Clepter 5 iocaripe Thery are con.pdf
Gibsal Suaneis Practices  Clepter 5 iocaripe Thery are con.pdfGibsal Suaneis Practices  Clepter 5 iocaripe Thery are con.pdf
Gibsal Suaneis Practices Clepter 5 iocaripe Thery are con.pdf
 
Example 214 Professor May B Right often has her facts wro.pdf
Example 214 Professor May B Right often has her facts wro.pdfExample 214 Professor May B Right often has her facts wro.pdf
Example 214 Professor May B Right often has her facts wro.pdf
 

Recently uploaded

BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 

Recently uploaded (20)

BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 

Write a recursive function called DigitCount that takes a .pdf

  • 1. Write a recursive function called DigitCount() that takes a positive integer as a parameter and returns the number of digits in the integer. Hint: The number of digits increases by 1 whenever the input number is divided by 10. Ex: If the input is: the function DigitCount() returns and the program outputs: IN C CODE