Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlib.h>
- int main (){
- float n1,n2,n3,n4,n5;
- printf("digite o primeiro numero:");
- scanf("%f",&n1);
- printf("digite o segundo:");
- scanf("%f",&n2);
- printf("gigite o terceiro:");
- scanf("%f",&n3);
- printf("digite o quarto:");
- scanf("%f",&n4);
- printf("digite o quinto:");
- scanf("%f",&n5);
- if (n1<0)
- printf("o primeiro numero= negativo\n");
- if (n2<0)
- printf("segundo numero= negativo\n");
- if (n3<0)
- printf("terceiro numero= negativo\n");
- if (n4<0)
- printf("quarto numero= negativo\n");
- if (n5<0)
- printf("quinto numero= negativo\n");
- if (n1>0 && n2>0 && n3>0 && n4>0 && n5>0)
- printf("todos os numeros sao positivos\n");
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment