Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlib.h>
- int main(){
- int i=0,n,neg=0;
- printf("digite varios valores:\n");
- while(i<=n){
- scanf("%d",&n);
- if(n<0)
- neg++;
- }
- printf("%d eh negativo\n",n);
- printf("temos %d numero(s) negativo(s)\n",neg);
- system ("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment