Professional Documents
Culture Documents
Assignment No. 2:
DUE DATE : Tuesday, 4th April, 2023
Question 1
Write a program in C to display the multiplication table of a given integer using for
loop.
Input the number (Table to be calculated): 9
Expected Output:
9X1=9
• Write the same Program using While and then Do while loop structures.
• Make sure to write meaning full comments.
Part a: Create a C program using user define functions to calculate the Area of
square and Area of a triangle.
Part b: Write a program in C using user define functions to check a given number is
even or odd.
In each part (a, b) of question NO.2, the user define function should be defined,
declared in the following four different ways. So there should be four different
programs for each part.
• Make sure to write meaning full comments and take care of syntax.
Submission Instructions:
Note: