codinasion-archive / codinasion-monorepo

Community Monorepo
https://codinasion.org
MIT License
52 stars 167 forks source link

Write a C++ program to find sum of n natural numbers using formula #3991

Closed harshraj8843 closed 1 year ago

harshraj8843 commented 1 year ago

Description

Write a C++ program to find sum of n natural numbers using formula

formula: n(n+1)/2

Input  : 5
Output : 15
How to contribute - Save the solution in `FindSumOfNNaturalNumbersUsingFormula.cpp` file - Add `FindSumOfNNaturalNumbersUsingFormula.cpp` file in `program/find-sum-of-n-natural-numbers-using-formula` folder
hi-Kartik2004 commented 1 year ago

!assign

hi-Kartik2004 commented 1 year ago

Issue solved in Pull request number codinasion/program#5811

harshraj8843 commented 1 year ago

Will be reviewed and merged shortly 🤗

Thanks for contributing 👍🏻

hi-Kartik2004 commented 1 year ago

Issue solved in Pull request number https://github.com/codinasion/program/pull/5811