[ create a new paste ] login | about

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

C++, pasted on Sep 13:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include<stdio.h>
#include<stdio.h>
#include<math.h>
 void main()
   { 
   int num; 
   printf("Insira um numero: "); 
   scanf("%d", &num); 
   if(num %2 == 0)                     
   { 
   printf ( " O numero %d e Par ", num); 
   } 
   else 
   { 
   printf ( " O numero %d e Impar ", num); 
    } 
   getch(); 

    } 


Output:
1
2
Line 4: error: '::main' must return 'int'
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: