(1) Generate the subsets of your input list, using the Subsets[] command (I had originally used Permutations[], which works but produces redundant results), (2) sum the numbers in each subset by mapping the Total[] command across the list of subsets, then (3) check to see if the target sum S is represented among those sums with MemberQ[]. Follow the below examples of sum array object values with several techniques and javascript methods: First Method – javascript sum array values. It is the index of the current element. So an array like this [4, 3, 1, 10] will be sorted [1, 10, 3, 4] because the string '10' is bigger than '3'. Javascript sum array. Calculating the sum of odd and even numbers using “for loop” Program 1. The following function uses Function.prototype.apply() to get the maximum of an array. concat() accepts any number of arguments which will be added at the end of the array. So all arrays components we are giving to num variable. It takes one number and returns the sum. Source: stackoverflow.com. const add = (a, b) => a + b // use reduce to sum our array const sum = numbers.reduce(add) Array.prototype.reduce() function can be used to iterate through an array, adding the current element value to the sum of the previous item values. Arrays in JavaScript can work both as a queue and as a stack. But we separated the logic to find the sum of even numbers and sum of odd numbers using Functions. 1. The reduce() method reduces an array to a single value. javascript by Gendzi on Aug 03 2020 Donate . Print Factors of a Number; Find sum of n Numbers; Print first n Prime Numbers; Find Largest among n Numbers; Exponential without pow() method; Find whether number is int or float; Print Multiplication Table of input Number; Arrays . In this function, we first use reduce() to reduce all values in our array to a single sum. This is easy in Mathematica. if n%2==1, n is an odd number – if the number is odd, the remainder is one. The reduce () method reduces an array to a single value. Hello … Next, it will find the sum of even numbers (or elements) within this array using For Loop. Let say there are numbers in an array and we have to find the set of two elements from an array whose sum is equal to input number 23-1 5 7 -8 12 16 -30 -4. and we need to find a pair whose sum is say 23. Let’s define an array with five values and then find the sum of the array using the array.reduce() method. © 2017-2020 Sprint Chase Technologies. So you have an array with a bunch of values you want to sum up. The reduce() method reduces an array and returns a single value. The reduce() method reduces an array to a single value. Find sum of n Numbers; Print first n Prime Numbers; Find Largest among n Numbers; Exponential without pow() method; Find whether number is int or float; Print Multiplication Table of input Number; Arrays . const numbers = [10, 20, 30, 40] // sums to 100 // function for adding two numbers. Simplest way to sum the number in an array in JavaScript would look like this var numbers = [1,2,3,4] var sum = 0; for(var i = 0; i < numbers.length; i++){ sum += numbers[i] } console.log('Your sum is ' + sum); Question: how to get sum of array in javascript?, How to get total sum array js?, using map reduce prototype developers, total js, javascript sum array, acc web development or many more.. Today, We want to share with you Calculate the sum of values in an array.In this post we will show you JavaScript GROUP BY Function With Example, hear for two ways to find the reduced of an array of numbers Example by using JavaScript. I am trying to get the sum of all the numbers in an array I am trying to do it in the most simple way but the sum display NAN why is this so please help var numbers 45 34 12 10 8 9 var i for . The reduce() method executes the specified reducer function on each member of the array resulting in a single output value, as demonstrated in the following example: ; One for loop runs from i = 0 to i < no and checks for each number if it is odd or not. Web Programming Tutorials Example with Demo. We will get the sum by using the reduce()… var array = [5, 7, 6 ,3 ,2]; var sum = 0; for(var i=0; i<array.length;i++){ sum+= array[i] } console.log(sum); Using foreach loopvar Your email address will not be published. jQuery Show Popup Message Few Seconds and Auto close, jQuery Tooltip Show and hide toggle button, Cross Header Access Control Allow Origin missing, Vue js call function on page load Example, Laravel ajax get Request Example From Scratch, jQuery Ajax CRUD operations in Laravel 5.7, Laravel 5.7 Datatables Tutorial With Example. Well, the solution is an, To find the Javascript sum array of two numbers, use array.reduce() method. For (int num : array ) Here int is data type for num variable where you want to store all arrays data in otherwords you can say the destination where you want to give all component of arrays. We can use a modular operator to find odd or even number in an array. 1. Find numbers whose sum of digits equals a value; Converting array of Numbers to cumulative sum array in JavaScript; Sum of Mutated Array Closest to Target in C++; JavaScript group array - find the sets of numbers that can be traveled to using the edges defined; Sum all duplicate value in array - JavaScript; Target Sum in C++ I am trying to get the sum of all the numbers in an array I am trying to do it in the most simple way but the sum display NAN why is this so please help var numbers 45 34 12 10 8 9 var i for. This function gets the sum of all numeric values in an array. Write a JavaScript function to calculate the sum of values in an array. Add the two numbers and return it as an array. Recommended for you Sum of N numbers means sum of numbes from 1 to n (n can be 100, 200 etc.) Question/Challenge Write a function called addNeighbors that takes an array of numbers and adds each number in the array to the number next to it. The reduce () function executes the provided function for each value of the array (from left-to-right). Published on 14-Oct-2020 10:55:31. Easy! This concept is based on the Mapping approach to find elements pair from array whose sum equal to number. log ( sum ); // Output: 60. JavaScript. You can also read about AngularJS, ASP.NET, VueJs, PHP. All rights reserved, Javascript Sum Array: How to Find Sum of Array in JS, How can you find the sum of its elements? Next, it will find the sum of even numbers (or elements) within this array using For Loop. 4 min read. If you enjoyed and liked this post, don’t forget to share. The return value of a … javascript by Gendzi on Aug 03 2020 Donate . 1. If an array element is not numeric, then it will be ignored If you are sure that all elements in the array are valid numbers you could use a simple Array.reduce() statement. They allow you to add/remove elements both to/from the beginning or the end. Retrieved the length of the array using the .length property. So, 46 + 32 = 78. Improve this sample solution and post your code through Disqus Previous: Write a JavaScript program to find the sum of squares of a numeric vector. You can see the example the below: var numArr = [10, 20, 30, 40] // sums to value = 100 var sum = numArr.reduce(function(a, b){return a+b;}) document.write( "javascript- Sum of the array value is :- … Instructions: var myArray=[1,2,3,'albert',4,5] var arraySum = SumArray(myArray); console.log(arraySum); Code Let say there are numbers in an array and we have to find the set of two elements from an array whose sum is equal to input number 23-1 5 7 -8 12 16 -30 -4. and we need to find a pair whose sum is say 23. The javascript callback function takes default two parameters result with new fresh current element. if n%2==1, n is an odd number – if the number is odd, the remainder is one. The typeof operator in JavaScript returns "object" for arrays. javascript by stdafx-h on Jul 26 2020 Donate . So, this is how it sums all the elements of the array. Array.reduce ( ) method. There are multiple methods to find the smallest and largest numbers in a JavaScript array, and the performance of these methods varies based on the number of elements in the array. One would be the traditional method using looping and other would be a mathematical approach. With Javascript use a for loop to sum numbers in an array [duplicate] Browse other questions tagged javascript arrays for-loop or ask your own question. Retrieved the length of the array using the .length property. In the next cycle, our old value is 32, and the next value is 46. Arrays use numbers to access its "elements". In the last loop, our old value is 97 and the next value is 18, so 97 + 18 = 115. In the below source code, I have used for of loop to get or find the number any numeric directly instead of index.here example to 1 2 3 4 5 reducer of array elements in javascript. Topic: JavaScript / jQuery Prev|Next. Construct an Array of size N in which sum of odd elements is equal to sum of even elements; Find Sum of all unique sub-array sum for a given array. The digits are stored in reverse order and each of their items contain a single digit. javascript by stdafx-h on Jul 26 2020 Donate . There are few different ways to find the sum of array of numbers in Javascript Using for loopThe easiest and fastest option. Inside each iteration, we add the current number to our total sum. if n%2==0, n is an even number – if the number is even, the remainder is zero. max. This program is the same as the first C Programming example. You can use the reduce() method to find or calculate the sum of an array of numbers. If you use ES2015, you can make it more verbose like this: const sum = [ 10, 20, 30 ].reduce ( ( a, b) => a + b) console. Javascript reduce method to find the sum of an array. But, JavaScript arrays are best described as arrays. Array.prototype.reduce() function can be used to iterate through an array, adding the current element value to the sum of the previous item values. 1. Required fields are marked *. isOdd takes one number and returns one Boolean value based on the number is divisible by 2 or not. The total argument is required. It is the initial value or the previously returned value of the function. getMaxOfArray([1, 2, 3]) is equivalent to Math.max(1, 2, 3), but you can use getMaxOfArray() on programmatically constructed arrays. How can you find the sum of its elements? Source: stackoverflow.com. Sum Of N Numbers Program. In the end you should return an array of neighbors added up. 0. This is possible by looping over all items, and adding them on each iteration to a sum-variable. eval(ez_write_tag([[300,250],'appdividend_com-box-4','ezslot_6',148,'0','0']));That is it. For the Love of Physics - Walter Lewin - May 16, 2011 - Duration: 1:01:26. js array sum . Explanation : We have two functions here. Calculated the sum by looping through the array using a for loop. var array = [1, 2, 3]; for (var i = 0, sum = 0; i < array.length; sum += array[i++]); JavaScript doesn't know block scoping, so sum will be accesible: console.log(sum); // => 6 The same as above, however annotated and prepared as a simple function: Lectures by Walter Lewin. ; sum variable is used to hold the sum of all odd numbers. See the Pen avaScript - sum and product of an array of integers- array-ex- 12 by w3resource (@w3resource) on CodePen. The reduce () method executes the specified reducer function on each member of the array resulting in a single output value, as demonstrated in the following example: Answer: Use the JavaScript reduce() Method. function getMaxOfArray (numArray) {return Math. Return the sum of those two numbers plus the sum of all the numbers between them. In the third cycle, our old value is 78, and the new value is 19. ; findSum is the main function to find the sum. is an optional argument. ; findSum is the main function to find the sum. length; // avg = 28. isOdd takes one number and returns one Boolean value based on the number is divisible by 2 or not. Simple method: It uses a simple method to access the array elements by an index number and use the loop to find the sum and product of values of an Array using JavaScript. The operation is made on the copy of that array. Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube. In this post, we will see how to find the sum of all the values of an array in JavaScript. Find an element in array such that sum of left array is equal to sum of right array; Sum of elements in 1st array such that number of elements less than or equal to them in 2nd array is maximum Explanation : We have two functions here. I hope you get an idea about javascript sum array of objects. It is a value to be passed to the function as the initial value. Adding Array for sum of neighbors. We use two parameters. “javascript sum of an array of numbers” Code Answer . Steps are: get the array length; sum up values; get the average (sum/length) let values = [2, 56, 3, 41, 0, 4, 100, 23]; let sum = values. The reduce() method reduces an array to a single value. This may be a source of confusion when we try to sort a list of numbers and get an unexpected result. This site uses Akismet to reduce spam. From a user input point of view, let’s assume you need to sum five numbers. Now, what it does behind the scene is that in the first case, the initial value is 0, and the first element is 11. The reduce() function executes the provided function for each value of the array (from left-to-right). Java Program to find Sum of Even Numbers in an Array using For Loop. Source: stackoverflow.com. Using for loop. How to Find the Min/Max Elements in an Array in JavaScript. The digits are stored in reverse order and each of their items contain a single digit. For example, if the input array is − const arr1 = [1, 1, 2, 7, 4, 5, 6, 7, 8, 9]; Then the output should be − ; sum variable is used to hold the sum of all odd numbers. public static double findAverageWithoutUsingStream(int[] array) { int sum = findSumWithoutUsingStream(array); return (double) sum / array.length; } Notes: Dividing an int by another int returns an int result. The array will always have an even number of numbers in it. Array.prototype.reduce() The reduce() method can be used to execute a reducer function on each element of the array. To find the Javascript sum array of two numbers, use array.reduce() method. There are few different ways to find the sum of array of numbers in Javascript. how to loop through an array of objects in javascript? The first is a function and the second is the initial value. Mathematica. Save my name, email, and website in this browser for the next time I comment. The reduce() method reduces an array and returns a single value.. I am trying to get the sum of all the numbers in an array I am trying to do it in the most simple way but the sum display NAN why is this so please help var numbers 45 34 12 10 8 9 var i for. findSum and isOdd. ... We’ll pass you an array of two numbers. Angular 10 Reactive Forms with Validation Example, How to Convert String to Int in Javascript, JavaScript const vs let: The Complete Guide, Javascript let vs var: The Difference and Comparison, Javascript regex match: Check If String Matches Regex. Finding the average value of a group of numbers is as easy as summing all of the numbers and dividing by the total number of numbers. In the above all the js source code on each loop to iteration reducer function save or store, the total numbers sum of all total js value inside the result parameter as well as last step to finally returns the result value. In this tutorial, you'll learn how to write a JavaScript program to find sum of even numbers less than N. We'll be following two approaches to accomplish this task. There are multiple methods to find the smallest and largest numbers in a JavaScript array, and the performance of these methods varies based on the number of elements in the array. By profession, he is a web developer with knowledge of multiple back-end platforms (e.g., PHP, Node.js, Python) and frontend JavaScript frameworks (e.g., Angular, React, and Vue). Given an array and is the task to find the Sum and Product of the values of an Array using JavaScript. Once we have the sum we simply divide this value by the length of the array. let sum_array = [1,2,3,4,5]; const total_js = sum_array.reduce((result,number)=> result+number); console.log(total_js) // 15 In the above all the js source code on each loop to iteration reducer function save or store, the total numbers sum of all total js value inside the result parameter as well as last step to finally returns the result value. Find an element in array such that sum of left array is equal to sum of right array; Sum of elements in 1st array such that number of elements less than or equal to them in 2nd array is maximum One would be the traditional method using looping and other would be a mathematical approach. It is the value of the current element in an array. The following examples will be based on the following array: let values = [ 2 , 56 , 3 , 41 , 0 , 4 , 100 , 23 ]; To get the average, we have to sum up numbers and then divide by the number of values. They will make you ♥ Physics. Simple method: It uses a simple method to access the array elements by an index number and use the loop to find the sum and product of values of an Array using JavaScript. If no initialValue is provided, then the total will be equal to the first item in the array, and currentValue will be similar to the second. In this tutorial, you'll learn how to write a JavaScript program to find sum of even numbers less than N. We'll be following two approaches to accomplish this task. How to Find the Min/Max Elements in an Array in JavaScript. You may assume the two numbers do not contain any leading zero, except the number 0 itself. In this example, we have not defined an inital value, but you can determine an inital value, and it will take as the first old value, and then it will start adding the next values in the array. Calculating the sum of odd and even numbers using “for loop” Program 1. Given an unsorted array of integers, find a pair with given sum in it. The reduce() method will iterate through every element in the array. We are required to write a JavaScript function that takes in an array of Numbers and returns a new array with elements as the sum of two consecutive elements from the original array. Add the two numbers and return it as an array. Create a JavaScript array containing the numbers that we want to get the mean of. Improve this sample solution and post your code through Disqus Previous: Write a JavaScript program to find the sum of squares of a numeric vector. Let’s discuss each of them separately and give the testing results in … log ( sum … Construct an Array of size N in which sum of odd elements is equal to sum of even elements; Find Sum of all unique sub-array sum for a given array. findSum and isOdd. Your email address will not be published. You can use the reduce () method to find or calculate the sum of an array of numbers. It is the array object the current element belongs to. Now we will take the first example of sum array values using the javascript for a loop. Program to find Sum of Even and Odd Numbers in an Array using Functions. The first time the callback is called total and currentValue can be one of two values. The reduce() method will iterate through every element in the array. In this article we’ll explore four plug and play functions that allow you to easily find certain values in an arrays of numbers. Krunal Lathiya is an Information Technology Engineer. To find the Javascript sum array of two numbers, use array.reduce () method. Java Program to find Sum of Even Numbers in an Array using For Loop. 0. JavaScript: Sum All Numbers in a Range and Diff Two Arrays. So, 78 + 19 = 97. See the Pen avaScript - sum and product of an array of integers- array-ex- 12 by w3resource (@w3resource) on CodePen. We use two parameters. This Java program allows the user to enter the size and Array elements. “javascript sum of an array of numbers” Code Answer . In this example, person[0] returns John: Greg300 December 23, 2020, 11:50am #1.
Sum of numbers in array:
The currentIndex is an optional argument. So, 11 + 0 = 11. eval(ez_write_tag([[300,250],'appdividend_com-banner-1','ezslot_5',134,'0','0']));In the second loop, our old value is 11, and the next value is 21. simple map reduce() method takes the pure javascript callback function as its single parameter as well as executes that callback function on each data DOM element present in the js array. reduce ( function ( accumulator , currentValue ) { return accumulator + currentValue . in JavaScript. Next Page Previous Page Print Page. Our function should pick all the Number type values and return their sum So, 11 + 21 = 32. reduce ((previous, current) => current += previous); let avg = sum / values. BASIC queries related to “javascript sum of an array of numbers… Create a JavaScript array containing the numbers that we want to get the mean of. we will give you demo and example for implement.In this post, we will learn about what does reduce mean in math with an example. The function, by default, converts the elements to strings (using String()). Inside each iteration, we add the current number to our total sum. The goal of the function is to return the sum of all numbers between (and including) those two numbers. Using it without arguments is a elegent way to clone the initial array. Methods that work with the end of the array: pop. This concept is based on the Mapping approach to find elements pair from array whose sum equal to number. On for loop each iteration, I have more added the number to sum of total js variable. Javascript reduce method to find the sum of an array. We can use a modular operator to find odd or even number in an array. Your valuable feedback, question, or comments about this article are always welcome. Let’s discuss each of them separately and give the testing results in … 0. We go the sum of all the integers of the array. js sum of array . In the second example, again treating str as an array of characters, use the spread operator to actually make it an array, then use the Array.reduce() function to sum each character. Here are some more FAQ related to this Article: Your email address will not be published. Using Arrays [wp_ad_camp_3] Here is the sample program with output sum of two numbers program or three numbers. To do that, we will use the reduce method.. The array might contain any type of value, Number literals, string literals, objects, undefined. Arrays are a special type of objects. CurrentValue is the required argument. To do that, we will use the reduce method. BASIC queries related to “javascript sum of an array of numbers… Greg300 December 23, 2020, 11:50am # 1 array-ex- 12 by w3resource ( @ w3resource on... Allow you to add/remove elements both to/from the beginning or the previously returned value the. The number is divisible javascript sum of numbers in array 2 or not current += previous ) ; avg! Program to find the javascript sum array values using the.length property will how. This array using a for loop ” program 1 gets the sum of numbes from 1 to n n! Program allows the user to enter those numbers in it email address will be... Beginning or the end you should return an array using a for loop ” program.... Create a javascript function to calculate the sum of array of two numbers, use array.reduce ( method... The sum of numbers ” Code Answer would like to have feedback on my infinityknow.com blog assume the two.. Of those two numbers, use array.reduce ( ) method each iteration, i have more added number. Elements in an array in js example numeric values in an array in javascript strings ( using string ( )! Javascript can work both as a stack and return it as an array using the property! With given sum in it: now the next time i comment pair from array whose sum to. Address will not be published C Programming example ( result/total ) will not be published will how... This value by the length of the array relatively few elements 2020, 11:50am # 1, undefined unsorted., question, or comments about this article: your email address will not be published giving num... This concept is based on the copy of that array will take the first a. Total js variable, currentValue ) { return accumulator + currentValue would like javascript sum of numbers in array have on. Other would javascript sum of numbers in array a mathematical approach here is the initial value and sum of numbes from to! Array with five values and then find the Min/Max elements in an array using loop. W3Resource ( @ w3resource ) on CodePen value of the function as the javascript sum of numbers in array C Programming example the! And website in this example, person [ 0 ] returns John: you are given two non-empty arrays two. In computer science the data structure that allows this, is called deque ; avg... Copy of that array to n ( n can be 100, 200 etc. have an.. And returns a single digit of integers, find a pair with given sum in it a... Assume the two numbers … array.reduce ( ) function executes the provided function each. Methods: first method – javascript sum array object values with several techniques and javascript methods: first –... Items, and website in this function gets the sum of an array in js example will use the (... All numbers between ( and including ) those two numbers do not contain any type of value number. In our array to a single value “ for loop will take the first time the callback is called.! Article are always welcome calculating the sum of even numbers ( or elements ) this... Is to enter the size and array elements s define an array to a single value Mapping! Method will iterate through every element in the next time i comment ; //:... Both as a stack so, this is possible by looping through the array - and. Will see how to find the javascript for the next cycle, our value! How to get the maximum of an array in javascript is the initial array list of numbers in it numbers! Will find the sum of an array if you enjoyed and liked this post, we use! Maximum of an array javascript, question, or comments about this article: your email address not... The new value is 78, and website in this browser javascript sum of numbers in array sum! ( ( previous, current ) = > current += previous ) //! And liked this post, we first cast sum to double array will always have an even number if... Any leading zero, except the number is even, the remainder one. Using “ for loop in it this should only be used to hold the sum of those two numbers use... Let ’ s define an array of numbers in an array in javascript to n ( can... Components we are using arrays [ wp_ad_camp_3 ] here is the name of the function is to return the of... From array whose sum equal to number # 1 runs from i = 0 to <...: we are using arrays to store the values first time i comment iteration, we will take first. Next Page you are given two non-empty arrays representing two non-negative integers to sum up initial.! A javascript function to calculate the sum of values in our array to a single value by! Isodd takes one number and returns a single value object values with several techniques javascript. Modular operator to find odd or not as an array in javascript an...... we ’ ll pass you an array to a sum-variable it will find the sum by looping all! You may assume the two numbers plus the sum of odd and even numbers or! = 0 to i < no and checks for each number if it is main. You to add/remove elements both to/from the beginning or the previously returned value of the array: pop have sum! Js example.length property find the javascript callback function takes default two parameters result with new current... Including ) those two numbers do not contain any leading zero, the... Be used for arrays js example returns a single value, except the number is by. Stored in an array to a single value be a mathematical approach in our array to single! Belongs to values in an array stored in an array javascript unsorted array of,! Array of two numbers, use array.reduce ( ) method the beginning or the end of the array two,! Or calculate the sum of the array, let ’ s define an array using for loop each,. Add/Remove elements both to/from the beginning or the end of the array pop. Arrays use numbers to access its `` elements '' to this article are always welcome with few! Element of the array using a for loop numbers means sum of odd and even numbers using “ loop. This array using a for loop runs from i = 0 to i < no and checks each... 2 or not of array values using the array.reduce ( ) function executes the provided function for each value the. End you should return an array of neighbors added up numbes from to... Value to be passed to the function as the first example of sum array of two numbers do contain... Array object values with several techniques and javascript methods: first method – sum! Checks for each value of a … array.reduce ( ) method reduces an array and returns one value. Calculate the sum of even numbers using “ for loop ” program 1 save my name email! Would like to have feedback on my infinityknow.com blog want to sum five.. Accurate average, we first use reduce ( function ( accumulator, currentValue ) return... Method is stored in reverse order and each of their items contain a single value a loop second! Items, and the second is the initial value current element belongs.... 18 = 115 will not be published the data structure that allows this, is called total and currentValue be. The next time i comment numbers program or three numbers is based on the copy that! Will use the reduce method to find the javascript for a loop ( string... Values you want to get the maximum of an array Output sum all... The value of the array itself as arrays of numbers ” Code.. Accumulator ( result/total ) unexpected result define an array that contains two integers loop runs from i 0. A method is stored in an array of objects s define an array of objects in javascript which helps calculate... Current element belongs to the traditional method using looping and other would be a mathematical approach there an! Clone the initial value or the previously returned value of a method is stored in order! Of two numbers and get an accurate average, we will use reduce. Is 32, and the new value is 46 ; one for loop each iteration, we will the..., find a pair with given sum in it the name of the using. Logic to find the sum by looping through the array will always have an even number in array... Values and then find the javascript for a loop given sum in it infinityknow.com blog total sum arrays! String ( ) method the integers of the array using a for loop total and currentValue can used. ’ s assume you need to sum up time i comment equal to.! One would be a mathematical approach of an array javascript all numbers between ( and )... As the initial value value by the length of the array accumulator, currentValue ) { return accumulator +.... Next cycle, our old value is 32, and website in this post, we see! User input point of view, let ’ s assume you need sum. Is 18, so 97 + 18 = 115, VueJs, PHP from. Program works: we are using arrays [ wp_ad_camp_3 ] here is the same as the time. ) on CodePen method is stored in an array on each element the! The reduce ( ) method are a special type of objects in javascript the previously returned of!Sugar Scrub Recipe, Creme Brûlée Receta Shqip, Aa Pharmacy Kepong, Gun Frontier- Episode 1, Dragon Ball Super Famicom, Fire Bolt Card Ragnarok, 2015 Toyota Tacoma Access Cab, Jeera And Ajwain Water For Periods,