I Haz Codes

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Menu
y=mx + c

You are to write a program which will display the first 10 values of x and y (integers only) for a given equation. It must allow m and c to be entered by the user.

An example output would look like this

Enter value for m = 2
Enter value for c = 1

Y = 2x + 1
(1,3)
(2,5)
(3,7)
(4,9)
(5,11)
(6,13)
(7,15)
(8,17)
(9,19)
(10,21)



Comments are closed.

Information