Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Right angle triangle with number increased by 1
samrina_sarkar_7
Jul 4th, 2019
55
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C
0.27 KB
| None
|
0
0
raw
download
clone
embed
print
report
#include<stdio.h>
int
main
(
)
{
int
i
,
j
,
k
,
n
;
printf
(
"Enter the number: "
)
;
scanf
(
"%d"
,&
n
)
;
k
=
1
;
for
(
i
=
1
;
i
<=
n
;
i
++
)
{
for
(
j
=
1
;
j
<=
i
;
j
++,
k
++
)
{
printf
(
" %d"
,
k
)
;
}
printf
(
"
\n
"
)
;
}
return
0
;
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
hack rsa
C++ | 10 min ago | 5.66 KB
Untitled
Bash | 14 min ago | 0.30 KB
TurtleGoldCoinSorter
Lua | 18 min ago | 0.52 KB
Untitled
JSON | 29 min ago | 1.71 KB
Untitled
JSON | 52 min ago | 4.35 KB
Untitled
C | 58 min ago | 0.34 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 💰
GetText | 1 hour ago | 0.38 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 1 hour ago | 0.39 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!