Assignment # 2

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

ASSIGNMENT # 2

Subject Programming Fundamentals Total Marks 20


Teacher SHEHZAD LATIF Submission Date 23rd January, 2019
st
Program BSCS-1 Semester Campus HU-SKP & EURO
Note:
This Assignment will be a part of your syllabus. Any question from this assignment may
be given to you in Mid/Final Term Exam.

Question No. 1: Write a program to calculate the product of even integer’s b/w 75 – 95
using for loop.

Question No. 2: Write a program to calculate the factorial of 5! & 6! using while loop.

Also calculate their sum.

Questions No. 3: Write a program to divide the product of odd integers b/w 35 -50 with
the product of factorials of 5 & 6 using do-while loop.

Questions No.4: What is switch statement? Find grades of students using switch
statement by calculating their percentages.

You might also like