Machine Problem in C
The sum of the first and second number, then the difference of the sum(total first and second number) and the third number product of the difference( sum and third) and the Fourth. The quotient of the product(difference and fourth) and the fifth number.
I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details. If you want to advertise on my website kindly contact me also in my email address also. Thank you.
My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.
My mobile number here in the Philippines is 09173084360.
My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675.
Here in Bacolod City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com
If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.
Your support on my channel is highly appreciated.
Thank you very much.
Program Listing
/* Machine Problem in C
The sum of first and second number,
then the difference of the sum(total first and second number) and
the third number product of the difference( sum and third) and
the Fourth. The quotient of the product(difference and fourth)
and the fifth number.
arithmetic.c
Mr. Jake Rodriguez Pomperada,MAED-IT, MIT
www.jakerpomperada.com, www.jakerpomperada.blogspot.com
jakerpomperada@gmail.com
December 2, 2020 Wednesday
Bacolod City, Negros Occidental Philippines
*/
#include <stdio.h>
int main()
{
float first=0,second=0;
float third=0,fourth=0;
float fifth=0;
float sum=0,difference=0;
float product=0, quotient=0;
float sum_all = 0;
printf("\n\n");
printf("\tArithmetic Operators in C");
printf("\n\n");
sum = (first+second);
difference = (first-second);
first = 100; second = 10;
sum = first + second;
third = 5;
difference = sum - third;
printf("\tThe sum of %5.2f and %5.2f is %5.2f.",first,second,sum);
printf("\n\n");
printf("\tThe difference between %5.2f and %5.2f is %5.2f."
,first,second,difference);
fourth = 2;
product = difference * fourth;
printf("\n\n");
printf("\tThe product of %5.2f and %5.2f is %5.2f."
,difference,fourth,product);
fifth = 20;
quotient = (product / fifth);
printf("\n\n");
printf("\tThe quotient of %5.2f and %5.2f is %5.2f."
,product,fifth,quotient);
printf("\n\n");
printf("\tEnd of Program");
printf("\n\n");
}
No comments:
Post a Comment