Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
problem 3
rony-Rony_05
Jun 21st, 2019
112
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
#include<stdio.h>
int
main
(
)
{
int
sum
=
0
,
n
,
fd
,
ld
;
scanf
(
"%d"
,&
n
)
;
ld
=
n
%
10
;
while
(
n
>=
10
)
{
n
=
n
/
10
;
}
fd
=
n
;
sum
=
fd
+
ld
;
printf
(
"first and last digit sum=%d"
,
sum
)
;
return
0
;
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
EM Operational: Can we edit/review the Semant...
9 hours ago | 0.74 KB
Focus LM
17 hours ago | 1.43 KB
THIS IS ME - THIS IS WHAT I BUILD
1 day ago | 0.04 KB
kMenu Settings
JSON | 2 days ago | 1.41 KB
KDE Customization
2 days ago | 1.36 KB
norm_krimi.py
Python | 2 days ago | 1.91 KB
llms.txt
3 days ago | 0.29 KB
EM Operational: Why was an EDU link built?
4 days ago | 1.18 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!