Advertisement
NoExisteLink

Eja

Apr 24th, 2014
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <conio.h>
  4. using namespace std;
  5. /*De 10 números ingresados indicar
  6. cuantos son mayores a cero y
  7. cuantos son menores a cero.*/
  8.  
  9. int detectar_num(int x){
  10. int y;
  11. y=x;
  12. if (y>0){
  13. cout<<y<<" Es mayor a 0."<<endl;
  14. }
  15. else{
  16. cout<<y<<" Es menor a 0."<<endl;
  17. }
  18. return y;
  19. }
  20. int main(){
  21. int a,b,c,d,e;
  22. int f,g,h,i,j;
  23. int q,r,s,t,u;
  24. int v,w,x,y,z;
  25. cin>>a>>b>>c>>d>>e>>f>>g>>h>>i>>j;
  26. q=detectar_num(a);
  27. r=detectar_num(b);
  28. s=detectar_num(c);
  29. t=detectar_num(d);
  30. u=detectar_num(e);
  31. v=detectar_num(f);
  32. w=detectar_num(g);
  33. x=detectar_num(h);
  34. y=detectar_num(i);
  35. z=detectar_num(j);
  36. _getch();
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement