pastebin
Add a new paste
View all pastes
Change language
Dutch
English
French
Russian
menu
URL Shortener
Multiple URL shortener
browser info
Whois IP and domain lookup
Capture a Website screenshot
Disqus Chatroom
Registration
pastebin
Paste Search Dynamic
Recent pastes
books
14 seconds ago
Container circular
1 minute ago
Adambrooks
6 hours ago
double mean
12 hours ago
Failed to fetch file
12 hours ago
do something
12 hours ago
server listen
12 hours ago
problem1
12 hours ago
request method
12 hours ago
La suma es
12 hours ago
mass temp
#include <stdio.h>
int
mass
[
10
]
=
{
0
}
;
int
i=
0
, temp_0=
0
, temp_1=
0
;
int
main
(
void
)
{
// your code goes here
mass
[
0
]
=
0
;
mass
[
1
]
=
0
;
mass
[
2
]
=
1
;
mass
[
3
]
=
1
;
mass
[
4
]
=
0
;
for
(
i=
0
;i<
10
;i++
)
{
if
(
mass
[
i
]
)
temp_1++;
else
temp_0 += mass
[
i
]
;
printf
(
"%d, temp_0 = %d, temp_1 = %dn"
, i, temp_0, temp_1
)
;
}
return
0
;
}
Parsed in 0.005 seconds