int main(){
printf("Name:via Galagate\n");
printf("Subject Code:CS242\n");
printf("Subject Title:programming language\n");
printf("Section:BSCS2B\n");
printf ("Activity No.5\n");
printf ("Insructor: Clinton Reducto\n");
printf("\n \n \n \n ");
int firstNumber, secondNumber, sumOfTwoNumbers, differenceOfTwoNumbers, productOfTwoNumbers, quotientOfTwoNumbers;
printf("Enter two integers:\n");
scanf("%d %d", &firstNumber, &secondNumber);
sumOfTwoNumbers= firstNumber + secondNumber;
differenceOfTwoNumbers = firstNumber - secondNumber;
productOfTwoNumbers = firstNumber * secondNumber;
quotientOfTwoNumbers = firstNumber / secondNumber;
printf("The sum of two number is: %d\n", sumOfTwoNumbers);
printf("The difference of two number is: %d\n", differenceOfTwoNumbers);
printf("The product of two number is: %d\n", productOfTwoNumbers);
printf("The quotient of two number is: %d\n", quotientOfTwoNumbers);
getchar();
return 0;
}
Walang komento:
Mag-post ng isang Komento