[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]#include[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]<iostream>[/COLOR][/SIZE][/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]int[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] Difference([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]int[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] agenta, [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]int[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] agentb);[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]int[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] main()[/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff] int[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] agent1x = 4;[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff] int[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] agent1y = 6;[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff] int[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] agent2x = -2;[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff] int[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] agent2y = 13;[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff] int[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] agent3x = 2;[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff] int[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] agent3y = 7;[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff] int[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] agent4x = 9;[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff] int[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] agent4y = -8;[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff] int[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] agent5x = 4;[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff] int[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] agent5y = -5;[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff] int[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] agentdiff12x = Difference( agent1x, agent2x);[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff] int[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] agentdiff12y = Difference( agent1y, agent2y);[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff] int[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] agentdiff13x = Difference( agent1x, agent3x);[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff] int[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] agentdiff13y = Difference( agent1y, agent3y);[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff] int[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] agentdiff14x = Difference( agent1x, agent4x);[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff] int[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] agentdiff14y = Difference( agent1y, agent4y);[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff] int[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] agentdiff15x = Difference( agent1x, agent5x);[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff] int[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] agentdiff15y = Difference( agent1y, agent5y);[/SIZE]
[SIZE=2] std::cout << [/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"Differences: "[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] << std::endl << std::endl;[/SIZE]
[SIZE=2] std::cout << agentdiff12x << [/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]","[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] << agentdiff12y << std::endl;[/SIZE]
[SIZE=2] std::cout << agentdiff13x << [/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]","[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] << agentdiff13y << std::endl;[/SIZE]
[SIZE=2] std::cout << agentdiff14x << [/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]","[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] << agentdiff14y << std::endl;[/SIZE]
[SIZE=2] std::cout << agentdiff15x << [/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]","[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] << agentdiff15y << std::endl;[/SIZE]
[SIZE=2] std::cin.get();[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff] return[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] 0;[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]int[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] Difference([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]int[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] agenta, [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]int[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] agentb)[/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff] int[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] result;[/SIZE]
[SIZE=2] result = agenta - agentb;[/SIZE]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff] return[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] result;[/SIZE]
[SIZE=2]}[/SIZE]