Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int quant,i,num;
- printf("Entre com a quantidade de valores a serem lidos :\n");
- scanf("%d",&quant);
- for (i = 0; i < quant; i++)
- {
- printf("Entre com um numero :\n"); scanf("%d",&num);
- if (num>=0)
- {
- printf("Numero positivo!\n\n");
- }
- else
- {
- printf("Numero negativo!\n\n");
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment