SlideShare a Scribd company logo
1 of 1
Download to read offline
Problem 2 . Print all odd numbers from n1 to 2 using the "for loop", the "while" loop and the do-
while loop in one program. Check whether nl is odd.

More Related Content

More from arbtimescentre

PROMPT (to be written in C)- This exercise has 2 parts- In each case y.pdf
PROMPT (to be written in C)- This exercise has 2 parts- In each case y.pdfPROMPT (to be written in C)- This exercise has 2 parts- In each case y.pdf
PROMPT (to be written in C)- This exercise has 2 parts- In each case y.pdfarbtimescentre
 
Prokaryotes use a single type of RNA polymerase to transcribe mRNA- tR.pdf
Prokaryotes use a single type of RNA polymerase to transcribe mRNA- tR.pdfProkaryotes use a single type of RNA polymerase to transcribe mRNA- tR.pdf
Prokaryotes use a single type of RNA polymerase to transcribe mRNA- tR.pdfarbtimescentre
 
Project 6- Design and implement a concordance program- that stores a l.pdf
Project 6- Design and implement a concordance program- that stores a l.pdfProject 6- Design and implement a concordance program- that stores a l.pdf
Project 6- Design and implement a concordance program- that stores a l.pdfarbtimescentre
 
Project 2- Generate a computerized telephone directory for a cellular.pdf
Project 2- Generate a computerized telephone directory for a cellular.pdfProject 2- Generate a computerized telephone directory for a cellular.pdf
Project 2- Generate a computerized telephone directory for a cellular.pdfarbtimescentre
 
Programming Exercises- a) Given a struct called Computer with followin.pdf
Programming Exercises- a) Given a struct called Computer with followin.pdfProgramming Exercises- a) Given a struct called Computer with followin.pdf
Programming Exercises- a) Given a struct called Computer with followin.pdfarbtimescentre
 
Program Coding (C Programming) for Turning Machine 1) Write coding in.pdf
Program Coding (C Programming) for Turning Machine 1) Write coding in.pdfProgram Coding (C Programming) for Turning Machine 1) Write coding in.pdf
Program Coding (C Programming) for Turning Machine 1) Write coding in.pdfarbtimescentre
 
Profilo Co- has the following assets and liabilities- Assets- cash- $1.pdf
Profilo Co- has the following assets and liabilities- Assets- cash- $1.pdfProfilo Co- has the following assets and liabilities- Assets- cash- $1.pdf
Profilo Co- has the following assets and liabilities- Assets- cash- $1.pdfarbtimescentre
 
Process Name- International Student Admission Process(George Brown Col.pdf
Process Name- International Student Admission Process(George Brown Col.pdfProcess Name- International Student Admission Process(George Brown Col.pdf
Process Name- International Student Admission Process(George Brown Col.pdfarbtimescentre
 
Problems 1 and 2 Suppose that Alice's public RSA key and scheme is giv.pdf
Problems 1 and 2 Suppose that Alice's public RSA key and scheme is giv.pdfProblems 1 and 2 Suppose that Alice's public RSA key and scheme is giv.pdf
Problems 1 and 2 Suppose that Alice's public RSA key and scheme is giv.pdfarbtimescentre
 
Process capability Part 2 A-exists when CPK is less than 1-0- B- m.pdf
Process capability Part 2   A-exists when CPK is less than 1-0-   B- m.pdfProcess capability Part 2   A-exists when CPK is less than 1-0-   B- m.pdf
Process capability Part 2 A-exists when CPK is less than 1-0- B- m.pdfarbtimescentre
 
Problems 7 and 8 Let X be a discrete random variable on {0-1}- Find th.pdf
Problems 7 and 8 Let X be a discrete random variable on {0-1}- Find th.pdfProblems 7 and 8 Let X be a discrete random variable on {0-1}- Find th.pdf
Problems 7 and 8 Let X be a discrete random variable on {0-1}- Find th.pdfarbtimescentre
 
Problems (1 pt) PUT GENOTYPES HERE Having dimples is a dominant trait.pdf
Problems (1 pt) PUT GENOTYPES HERE Having dimples is a dominant trait.pdfProblems (1 pt) PUT GENOTYPES HERE Having dimples is a dominant trait.pdf
Problems (1 pt) PUT GENOTYPES HERE Having dimples is a dominant trait.pdfarbtimescentre
 
Problem 7) The number of buses that arrive at a bus stop in T minutes.pdf
Problem 7) The number of buses that arrive at a bus stop in T minutes.pdfProblem 7) The number of buses that arrive at a bus stop in T minutes.pdf
Problem 7) The number of buses that arrive at a bus stop in T minutes.pdfarbtimescentre
 
PROBLEM 7 A random sample of size 35 is taken from a population of 100.pdf
PROBLEM 7 A random sample of size 35 is taken from a population of 100.pdfPROBLEM 7 A random sample of size 35 is taken from a population of 100.pdf
PROBLEM 7 A random sample of size 35 is taken from a population of 100.pdfarbtimescentre
 
Problem 6 Why cannot the following Python script execute and how to ma.pdf
Problem 6 Why cannot the following Python script execute and how to ma.pdfProblem 6 Why cannot the following Python script execute and how to ma.pdf
Problem 6 Why cannot the following Python script execute and how to ma.pdfarbtimescentre
 
Problem 21 (continuity of probability) For any sequence of events A1-A.pdf
Problem 21 (continuity of probability) For any sequence of events A1-A.pdfProblem 21 (continuity of probability) For any sequence of events A1-A.pdf
Problem 21 (continuity of probability) For any sequence of events A1-A.pdfarbtimescentre
 
Problem 2- The balanced growth path Consider a Solow economy that is o.pdf
Problem 2- The balanced growth path Consider a Solow economy that is o.pdfProblem 2- The balanced growth path Consider a Solow economy that is o.pdf
Problem 2- The balanced growth path Consider a Solow economy that is o.pdfarbtimescentre
 
Problem 2- Given a list of n elements with each element between 1 and (1).pdf
Problem 2- Given a list of n elements with each element between 1 and (1).pdfProblem 2- Given a list of n elements with each element between 1 and (1).pdf
Problem 2- Given a list of n elements with each element between 1 and (1).pdfarbtimescentre
 
Problem 4- There are 6 balls in a box- each labeled with a single digi.pdf
Problem 4- There are 6 balls in a box- each labeled with a single digi.pdfProblem 4- There are 6 balls in a box- each labeled with a single digi.pdf
Problem 4- There are 6 balls in a box- each labeled with a single digi.pdfarbtimescentre
 
Problem 2- (10 points) Run BFS and DFS on the graph below (start from.pdf
Problem 2- (10 points) Run BFS and DFS on the graph below (start from.pdfProblem 2- (10 points) Run BFS and DFS on the graph below (start from.pdf
Problem 2- (10 points) Run BFS and DFS on the graph below (start from.pdfarbtimescentre
 

More from arbtimescentre (20)

PROMPT (to be written in C)- This exercise has 2 parts- In each case y.pdf
PROMPT (to be written in C)- This exercise has 2 parts- In each case y.pdfPROMPT (to be written in C)- This exercise has 2 parts- In each case y.pdf
PROMPT (to be written in C)- This exercise has 2 parts- In each case y.pdf
 
Prokaryotes use a single type of RNA polymerase to transcribe mRNA- tR.pdf
Prokaryotes use a single type of RNA polymerase to transcribe mRNA- tR.pdfProkaryotes use a single type of RNA polymerase to transcribe mRNA- tR.pdf
Prokaryotes use a single type of RNA polymerase to transcribe mRNA- tR.pdf
 
Project 6- Design and implement a concordance program- that stores a l.pdf
Project 6- Design and implement a concordance program- that stores a l.pdfProject 6- Design and implement a concordance program- that stores a l.pdf
Project 6- Design and implement a concordance program- that stores a l.pdf
 
Project 2- Generate a computerized telephone directory for a cellular.pdf
Project 2- Generate a computerized telephone directory for a cellular.pdfProject 2- Generate a computerized telephone directory for a cellular.pdf
Project 2- Generate a computerized telephone directory for a cellular.pdf
 
Programming Exercises- a) Given a struct called Computer with followin.pdf
Programming Exercises- a) Given a struct called Computer with followin.pdfProgramming Exercises- a) Given a struct called Computer with followin.pdf
Programming Exercises- a) Given a struct called Computer with followin.pdf
 
Program Coding (C Programming) for Turning Machine 1) Write coding in.pdf
Program Coding (C Programming) for Turning Machine 1) Write coding in.pdfProgram Coding (C Programming) for Turning Machine 1) Write coding in.pdf
Program Coding (C Programming) for Turning Machine 1) Write coding in.pdf
 
Profilo Co- has the following assets and liabilities- Assets- cash- $1.pdf
Profilo Co- has the following assets and liabilities- Assets- cash- $1.pdfProfilo Co- has the following assets and liabilities- Assets- cash- $1.pdf
Profilo Co- has the following assets and liabilities- Assets- cash- $1.pdf
 
Process Name- International Student Admission Process(George Brown Col.pdf
Process Name- International Student Admission Process(George Brown Col.pdfProcess Name- International Student Admission Process(George Brown Col.pdf
Process Name- International Student Admission Process(George Brown Col.pdf
 
Problems 1 and 2 Suppose that Alice's public RSA key and scheme is giv.pdf
Problems 1 and 2 Suppose that Alice's public RSA key and scheme is giv.pdfProblems 1 and 2 Suppose that Alice's public RSA key and scheme is giv.pdf
Problems 1 and 2 Suppose that Alice's public RSA key and scheme is giv.pdf
 
Process capability Part 2 A-exists when CPK is less than 1-0- B- m.pdf
Process capability Part 2   A-exists when CPK is less than 1-0-   B- m.pdfProcess capability Part 2   A-exists when CPK is less than 1-0-   B- m.pdf
Process capability Part 2 A-exists when CPK is less than 1-0- B- m.pdf
 
Problems 7 and 8 Let X be a discrete random variable on {0-1}- Find th.pdf
Problems 7 and 8 Let X be a discrete random variable on {0-1}- Find th.pdfProblems 7 and 8 Let X be a discrete random variable on {0-1}- Find th.pdf
Problems 7 and 8 Let X be a discrete random variable on {0-1}- Find th.pdf
 
Problems (1 pt) PUT GENOTYPES HERE Having dimples is a dominant trait.pdf
Problems (1 pt) PUT GENOTYPES HERE Having dimples is a dominant trait.pdfProblems (1 pt) PUT GENOTYPES HERE Having dimples is a dominant trait.pdf
Problems (1 pt) PUT GENOTYPES HERE Having dimples is a dominant trait.pdf
 
Problem 7) The number of buses that arrive at a bus stop in T minutes.pdf
Problem 7) The number of buses that arrive at a bus stop in T minutes.pdfProblem 7) The number of buses that arrive at a bus stop in T minutes.pdf
Problem 7) The number of buses that arrive at a bus stop in T minutes.pdf
 
PROBLEM 7 A random sample of size 35 is taken from a population of 100.pdf
PROBLEM 7 A random sample of size 35 is taken from a population of 100.pdfPROBLEM 7 A random sample of size 35 is taken from a population of 100.pdf
PROBLEM 7 A random sample of size 35 is taken from a population of 100.pdf
 
Problem 6 Why cannot the following Python script execute and how to ma.pdf
Problem 6 Why cannot the following Python script execute and how to ma.pdfProblem 6 Why cannot the following Python script execute and how to ma.pdf
Problem 6 Why cannot the following Python script execute and how to ma.pdf
 
Problem 21 (continuity of probability) For any sequence of events A1-A.pdf
Problem 21 (continuity of probability) For any sequence of events A1-A.pdfProblem 21 (continuity of probability) For any sequence of events A1-A.pdf
Problem 21 (continuity of probability) For any sequence of events A1-A.pdf
 
Problem 2- The balanced growth path Consider a Solow economy that is o.pdf
Problem 2- The balanced growth path Consider a Solow economy that is o.pdfProblem 2- The balanced growth path Consider a Solow economy that is o.pdf
Problem 2- The balanced growth path Consider a Solow economy that is o.pdf
 
Problem 2- Given a list of n elements with each element between 1 and (1).pdf
Problem 2- Given a list of n elements with each element between 1 and (1).pdfProblem 2- Given a list of n elements with each element between 1 and (1).pdf
Problem 2- Given a list of n elements with each element between 1 and (1).pdf
 
Problem 4- There are 6 balls in a box- each labeled with a single digi.pdf
Problem 4- There are 6 balls in a box- each labeled with a single digi.pdfProblem 4- There are 6 balls in a box- each labeled with a single digi.pdf
Problem 4- There are 6 balls in a box- each labeled with a single digi.pdf
 
Problem 2- (10 points) Run BFS and DFS on the graph below (start from.pdf
Problem 2- (10 points) Run BFS and DFS on the graph below (start from.pdfProblem 2- (10 points) Run BFS and DFS on the graph below (start from.pdf
Problem 2- (10 points) Run BFS and DFS on the graph below (start from.pdf
 

Recently uploaded

Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 

Recently uploaded (20)

Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 

Problem 2 - Print all odd numbers from n1 to 2 using the -for loop-- t.pdf

  • 1. Problem 2 . Print all odd numbers from n1 to 2 using the "for loop", the "while" loop and the do- while loop in one program. Check whether nl is odd.