[ create a new paste ] login | about

Link: http://codepad.org/mVT2fWUX    [ raw code | output | fork ]

C, pasted on Apr 15:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>
main()
{

int sel[10], i, j, k;

//função para indicar se um número é par
int eh_par(int n) {

if( (n%2) == 0 )
return 1;

else
return 0;


Output:
1
2
3
4
In function 'eh_par':
Line 14: error: expected declaration or statement at end of input
In function 'main':
Line 14: error: expected declaration or statement at end of input


Create a new paste based on this one


Comments: