Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //IFF - Introdução à Programação
- //Slide - Página 21 - Exercício 1
- #include<stdio.h>
- #include<locale.h>
- int main(){
- setlocale(LC_ALL, "Portuguese");
- int n;
- printf("Entre com o número: ");
- scanf("%d",&n);
- if (n>0){
- printf("O número é positivo!");
- }else{
- printf("O número é negativo!");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment