CBSE Class 11 Compter Science Iteration Statements do While Loop

Scroll down for PDF

CBSE Class 11 Compter Science Iteration Statements do While Loop. Students are advised to refer to the attached assignments and practice them regularly. This will help them to identify their weak areas and will help them to score better in examination. Parents should download and give the assignments to their children for practice.

TOPIC: ITERATION STATEMENTS - do … while loop

1. Write a program to print the sum of negative numbers, sum of positive even numbers, sum of positive odd numbers from a list of numbers entered by the user. The list terminates when the num entered is zero.

2. Write a program to sum the given series. Accept the number of terms from the user. 2 - 5 + 8 - …………………… 9 13 17

3. Write a menu driven program as follows. Accept the necessary details from the user. MENU --------------------------------

1. Area of a Rectangle

2. Perimeter of a Rectangle

3. Length of the diagonal

Enter your choice(1 to 3):

4. Write a program to accept the number of lines and print the following pattern. Eg: If the number of lines is 4, then the pattern should be as follows. * * * * * * * * * *

5. Write a program to print first ‘n’ odd numbers in descending order. Eg: if number is 10, then the output is 9 7 5 3 1

6. Write a program to accept the number of lines and print the following pattern. Eg: If the number of lines is 3, then the pattern should be as follows. 1 1 2 1 1 2 3 2 1

7. Write a program to print all prime numbers from 1 to ‘n’. Accept the value for ‘n’ from the user. Eg: If number is 10, then the output is 2 3 5 7

8. Write a program to accept an integer ‘n’ (2 digit or more) and form a new integer that has the number of digit in ‘n’ at the ten’s place and the most significant digit of ‘n’ at the one’s place. Eg: If the number is 458 then the new number is 34

Please click the link below to download CBSE Class 11 Compter Science Iteration Statements do While Loop

Tags: 


Click on the text For more study material for Computer Science please click here - Computer Science

Latest NCERT & CBSE News

Read the latest news and announcements from NCERT and CBSE below. Important updates relating to your studies which will help you to keep yourself updated with latest happenings in school level education. Keep yourself updated with all latest news and also read articles from teachers which will help you to improve your studies, increase motivation level and promote faster learning

CBSE will have more practicals

CBSE board has made a bigger announcement regarding 2020 board examinations for class 12. Board has decided that subjects like humanities, History, English and Hindi will also have practical exams like Chemistry, Biology, and Physics. As per, CBSE official's statement...

JEE in Punjabi too after English, Hindi and Gujarati

Punjab Minister Tript Rajinder Singh Bajwa requested the joint technology entrance exam (main) to be conducted in Punjabi and other regional languages too. In his letter to Union HRD Minister Ramesh Pokhriyal Nishank, the Punjab Minister for Higher Education and...

Extension of dates by CBSE for Single Girl Child Merit (SGC) scholarship

CBSE has announced to extend dates for SGC scholarship. Previously the dates to submit the SGC scholarship form were 18 October 2019. Now dates have shifted. For online submission, the last date is 31st October. Whereas date for submission of hard copies of renewal...

Requirements for admissions in CBSE affiliated Schools

CBSE gives an advanced form of education. They try to indulge students in interactions and teach application based subjects along with some others. Due to this preponderance of parents, they tend to admit their children in CBSE affiliated schools. General conditions...

CBSE Circular Aryabhatta Ganit Challenge

For students with a keen interest in mathematics are now provided with a better opportunity to explore their knowledge. CBSE has announced to conduct an exam for the purpose of generating interest in maths among students. It is a trial to clarify the myth that...

TIPS: Study habits for success

Being a student is fairly a difficult job. Alongside maintaining your curricular as well as extra-curricular activities adds more to it. Performance in academics is one of the major concerns. Every parent now tries to get their children more indulged in studies. Need...

×
Studies Today