, , , , , , , ,

[SOLVED] Cs1412 assignment 4: more on selection statements and loops

$25

File Name: Cs1412_assignment_4:_more_on_selection_statements_and_loops.zip
File Size: 555.78 KB

5/5 - (1 vote)

Programs:
1. Write a program that prints the following triangle:
*
* *
* * *
* * * *
* * * * *2. For the following program ask the user to enter the number of rows that needs to be
displayed and print in the following format:
For ex:
Enter the number of rows you want in the triangle:
If input is 5, it needs to be displayed like this:
*
* *
* * *
* * * *
* * * * *3. Write a program that prints a one-month calendar. The user specifies the number of
days in the month and the day of the week on which the month begins:Enter number of days in month: 31
Enter starting day of the week (1=Sun, 7=Sat): 3
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 314. Write a program to print Fibonacci series up to n number of terms.
CS1412 Programming Principles II,Write pseudocode to solve the given problems.Write C program to solve the above problems. Name your file Lab4_YourName.c

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] Cs1412 assignment 4: more on selection statements and loops
$25