FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cpp/F06Patterns-2/ParallelogramPattern.cpp at main · roydevashish/cpp · GitHub
roydevashish
/
cpp
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cpp
/
F06Patterns-2
/
ParallelogramPattern.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
61 lines (48 loc) · 811 Bytes
Breadcrumbs
cpp
/
F06Patterns-2
/
ParallelogramPattern.cpp
Copy path
File metadata and controls
61 lines (48 loc) · 811 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
Title: Parallelogram Pattern
Problem statement
Write a program to print parallelogram pattern for the given N number of rows.
For N = 4
****
.****
..****
...****
The dots represent spaces.
Detailed explanation ( Input/output format, Notes, Images )
Input Format :
A single integer : N
Output Format :
Required Pattern
Constraints :
0 <= N <= 50
Sample Input 1 :
3
Sample Output 1 :
***
***
***
Sample Input 2 :
5
Sample Output 2 :
*****
*****
*****
*****
*****
*/
#
include
<
iostream
>
using
namespace
std
;
int
main
() {
int
n;
cin >> n;
for
(
int
row =
0
; row < n; row++) {
for
(
int
col =
0
; col < row; col++) {
cout <<
"
"
;
}
for
(
int
col =
0
; col < n; col++) {
cout <<
"
*
"
;
}
cout << endl;
}
return
0
;
}
Back
|
FazBrowse Home
|
New Git URL