An open API service indexing awesome lists of open source software.

https://github.com/chiragobhan/math-trick-using-c

C program asking you to think of 3 consecutive numbers and predicting the values.
https://github.com/chiragobhan/math-trick-using-c

c cprogramming math prediction trick

Last synced: about 1 year ago
JSON representation

C program asking you to think of 3 consecutive numbers and predicting the values.

Awesome Lists containing this project

README

          

# Math Trick Using C Programming
C program asking you to think of 3 consecutive numbers and with some numeric input it will predict the values.
Let's understand the program with an example.

Step 1: Consider our consecutive nos. to be 1,2,3 and our multiple of 3 is 3.

Step 2: By adding these numbers, we get: 9 (1+2+3+3) and multiplying it by 67 will give us: 603.

Step 3: Enter 0 and 3 in the program respectively, when asked. The program will give the result along with our consecutive numbers.

Executed Output:
![output](https://user-images.githubusercontent.com/32812640/124395763-87fc8800-dd23-11eb-9c15-f521b7d469a4.PNG)