Fandom

Programmer's Wiki

Comments2

my first ever blog

  1. include<stdio.h>
  1. include<conio.h>

void main() {

long n,m; float s,a; clrscr(); printf("The value of n: "); scanf("%ld",&n); printf("So that 1 +"); s=0; a=1; while(a<=n) { s=1/a+s; a=a+1; } m=2; while(m<=n) { printf("1/%ld+",m); m++; } printf("\b =  %f",s); getch(); }

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.