[ create a new paste ] login | about

Link: http://codepad.org/HTTY207j    [ 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
20
21
#include<stdio.h>
#include<stdio.h>
#include<math.h>


 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 6: error: ISO C++ forbids declaration of 'main' with no type
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: