Lab 1
Lab 1
void main()
}
Second Question
void main() // program that calculates two numbers enterd by the user //
{
int num1; // Declaration //
printf("Enter The First Number \n"); // ask the user to enter two nums//
scanf("%d", &num1); // creates a place to store the num entered by the user //
scanf("%d", &num2);
}
Third Question
scanf("%d", &num1);
scanf("%d", &num2);
num3=num1+num2; // calculation //
num4=num1-num2;
num5=num1*num2;