Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*programa con la variable global*/
- #include<stdio.h>
- int x;
- void funcionA(){
- x--;
- printf("Funcion A %d\n", x);
- }
- void funcionB(){
- x++;
- printf("Funcion B %d\n", x);
- }
- void funcionC(){
- x--;
- printf("Funcion C %d\n", x);
- }
- int main(){
- printf("Ingrese un valor de x\n");
- scanf("%d",&x);
- funcionA();
- funcionB();
- funcionC();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement