Midterm Examination Lab BSCS First Semester only in case of moellim blockage but if the university doesn't allow us to accommodate such cases your submission will be canceled without any notice. 

Midterm Examination Lab BSCS First Semester

Time Allowed: till deadline                                                                                                                         Total Marks: 20

Q1: Write a C++ program that converts Capital String into small and small into Capital String. Both input and converted strings must be printed on the console.                                                                            (5Marks)

Example output:

Input String: MY NAME IS RANA MARWAT

Output String: my name is rana marwat

Q2: Write a program to print all prime numbers between the range taken from the user. (Ask the user to enter starting and ending numbers).                                                                                           (5Marks)

 

Q3: Write a program to take input in integer Array and print all the values in reverse order on the console using Functions.                                                                                                                                               (5Marks)

 

Example output:

Input: 123456789

Output: 987654321

Q4:  Print Following Pattern using nested loops:                                                                                     (5Marks)

Output:

 *
**
***
****
*****
   **
   **
   **
   **

 Submission link:

 Click for submission 

1 Comments

  1. The Magic City Hotel & Casino - Mandiri Vihlejevo
    Casino in Mandiri Vihlejevo – Enjoy 속초 출장샵 over 650 이천 출장샵 slots and 70 영주 출장샵 table games 공주 출장마사지 – you have 상주 출장안마 a choice from an over-the-top resort with over 40,000 square feet of

    ReplyDelete

Post a Comment

Previous Post Next Post