Hello everyone, this is my first time posting here so any help would be appreciated. i am currently taking a class on C language, its an intro class. I have no previous knowledge on how to work with C language and i was wondering if anyone could help me with the following problems. i am using Codeblocks.
Write a C program that outputs to the screen the following arithmetic operations
¡ 7 + 3 * 5 – 2
¡ 4 + 7 / 3
¡ 8 % 3 * 6
¡ (7 + 3) * 5 – 2
Write a program to calculate distance between two points.
In your code do the following:
Ask the user to enter 2 points (x1,y1) and (x2,y2).
Calculate distance using the formula: sqrt ( (y2-y1)^2 + (x2-x1)^2)
Use sqrt and pow functions