#include<stdio.h> int main() { float sum; sum=0; for(int n=1; n<=10; ++n) { sum=sum+1/float(n); printf("%f",sum); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)