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.
- Host: GitHub
- URL: https://github.com/chiragobhan/math-trick-using-c
- Owner: chiragobhan
- Created: 2021-07-04T17:54:23.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-04T18:35:26.000Z (almost 5 years ago)
- Last Synced: 2024-01-08T06:50:03.219Z (over 2 years ago)
- Topics: c, cprogramming, math, prediction, trick
- Language: C
- Homepage:
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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:
