akshitagit / akshitagit/JavaScript

Find HCF

Open
#31 6 comments 0 reactions 0 assignees View on GitHub
Beginner good first issue Hacktoberfest hacktoberfest2020 Javascript
Dominant language
JavaScript
Stars
90
Forks
106
PR merge metrics
No merged PRs in 30d

Description

Given N positive numbers, your task is to calculate their HCF.
Input Format

First line of input contains a single integer N, second line contains N space separated positive integers whose HCF is to be computed.
Constraints

N <= 10 and all the numbers lie between 1 and 100.
Output Format

Print HCF of N numbers.
Sample Input

3
2 4 6

Sample Output

2

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.