Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlib.h>
- int i=0;
- void funcion (int a,int b)
- {
- for (i=a; i<b; i++) //// como se cuando tiene que devolver un valor la funcion o cuando no y cual valor va a ser!!!!!
- if (i%5==0) //// es decir como se cuando poner void o cuando int,....
- printf ("%d\t", i);
- }
- int main()
- {
- int a,b,c;
- printf ("Introducir intervalo entre a y b: a <enter> b<enter>\n");
- scanf ("%d", &a); ///// otra vez deprecated...............
- scanf ("%d", &b);
- if (a>b)
- {
- c=b;
- b=a;
- a=c;
- funcion (a,b);
- }
- else
- {
- funcion (a,b);
- }
- system("PAUSE");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement