Professional Documents
Culture Documents
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
reviewer4@nptel.iitm.ac.in
(course)
Announcements (announcements)
Week-05 Program-05
Course Due on 2020-03-05, 23:59 IST
outline
Write a C program to print the following Pyramid pattern upto Nth row. Where N
(number of rows to be printed) is taken as input.
How does an
NPTEL online *****
course work? ****
***
Week 0 **
*
Week 1
Week 3 *******
******
Week 4 *****
Test Case 1 7 ****
Week 5 ***
**
Lecture 21: For *
Statement
(Contd.) (unit?
****
unit=6&lesson=35)
***
Test Case 2 4
Lecture 22: **
Example of If- *
Else (unit?
unit=6&lesson=36)
Lecture 23 :
Example of
https://onlinecourses.nptel.ac.in/noc20_cs06/progassignment?name=122 1/3
03/07/2020 Problem solving through Programming In C - Course
Loops (unit?
unit=6&lesson=37) *****
****
Lecture 24 : 5 ***
Test Case 3
Example of
**
Loops (Contd.)
*
(unit?
unit=6&lesson=38)
***
Lecture 25 :
Test Case 4 3 **
Example of
*
Loops
(Contd.), Use
of FOR Loops
The due date for submitting this assignment has passed.
(unit?
unit=6&lesson=39) As per our records you have not submitted this assignment.
Sample solutions (Provided by instructor)
Quiz : 1 #include<stdio.h>
Assignment 5 2 int main()
(assessment? 3 {
4 int N;
name=104) 5 scanf("%d", &N); /*The value of N is taken as input from the test case
6
Week-05 7 int i,j;
Problem-01 8 for(i=N; i>0; i--)
9
(/noc20_cs06/progassignment?
{
10 for(j=0;j<i;j++)
name=118) 11 {
12 printf("*");
Week-05 13 }
Problem-02 14 printf("\n");
15 }
(/noc20_cs06/progassignment?
16 }
name=119) 17
Week-05
Problem-03
(/noc20_cs06/progassignment?
name=120)
Week-05
Program-04
(/noc20_cs06/progassignment?
name=121)
Week-05
Program-05
(/noc20_cs06/progassignment?
name=122)
Feedback For
Week 5 (unit?
unit=6&lesson=130)
Week 6
Week 7
Week 8
Week 9
Week 10
https://onlinecourses.nptel.ac.in/noc20_cs06/progassignment?name=122 2/3
03/07/2020 Problem solving through Programming In C - Course
Week 11
Week 12
DOWNLOAD
VIDEOS
Assignment
Solution
https://onlinecourses.nptel.ac.in/noc20_cs06/progassignment?name=122 3/3