repo.or.cz
/
letusc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
move to repo.or.cz
[letusc.git]
/
ch1
/
exercises
/
ex13.c
blob
82bf0f517c13e8d9c7d07e3b481a66c6e27be014
1
/*add 1 to each digit*/
2
3
#include<stdio.h>
4
5
int
main
()
6
{
7
long
num
;
8
long
num2
;
9
printf
(
"enter num: "
);
10
scanf
(
"%ld"
,&
num
);
11
12
num2
=
num
+
11111
;
13
printf
(
"Num2: %ld
\n
"
,
num2
);
14
return
0
;
15
}