diff --git a/Loops/Basic/Harmonic Progression.txt b/Loops/Basic/Harmonic Progression.txt index 84768dc..13afd72 100644 --- a/Loops/Basic/Harmonic Progression.txt +++ b/Loops/Basic/Harmonic Progression.txt @@ -4,4 +4,30 @@ Output: Nth term #Example: Input: A=2, D=4, N=5 -Output: 0.055 (Approx) \ No newline at end of file +Output: 0.055 (Approx) + +Contributor Zaid PARKAR + +#include +void main() +{ + int i,n; + float s=0.0; + printf("Input the number of terms : "); + scanf("%d",&n); + printf("\n\n"); + for(i=1;i<=n;i++) + { + if(i