Exemplo n.º 1
0
int main(void) {
	  int a = 10;
	  int b = 20;

	  swapnum(&a, &b);
	  printf("A is %d and B is %d\n", a, b);
	  return 0;
}
Exemplo n.º 2
0
int main()
{
	int i,j;
	int a[10];
	int n=10;	
	inputnum(a,10);
	swapnum(a,10);
	outputnum(a);
	return 0;
	
}
Exemplo n.º 3
0
int main(void) 
{
  float a,b,c,d,e,addition;


  p("enter numbers: ");
  scanf("%f %f %f %f %f", &a, &b, &c, &d, &e);

  swapnum(a,b,c,d,e, &addition);

  p("A is %.2f\nB is %.2f \nC is %.2f \nD is %.2f \nE is %.2f\n", a, b, c, d, e);
  p("\nthe total is %.2f",addition);

  return 0;
}
void sub() {
    int i,j;
    // swapnum(i,j);
    //  start_pes(1);
    swapnum(i,j);
}