//Gaynor Thomas Week 2 scanf etc.

#include <stdio.h>  //library file

void main()
{
int mynumber,secondnumber,total;

printf("Welcome to my program\n\n");
printf("Please enter a number: ");

scanf("%d",&mynumber);   //ampersand before variable on scanf

printf("Please enter another number");
scanf("%d",&secondnumber);

total=mynumber+secondnumber;  //result always on left of equation
printf("\nThe answer was: %d\n",total);

total=mynumber-secondnumber;
printf("The answer was: %d\n",total);

total=mynumber*secondnumber;
printf("The answer was %d\n",total);

total=mynumber/secondnumber;
printf("The total was %d\n\n",total);






}