I need to write a program to calculate and print the result of the folowing two operations:
1/1+1/2+1/3+1/4+1/5+ ....=1/99999999+1/1000000000
and 1/1000000000+ 1/99999999 + 1/99999998+1/99999997+ .....+ 1/3+1/2+1/1
I am just learning and I dont even know how to start
besides
# include <iostream>
using namespace std:
cout<<"1/1+1/2+1/3+1/4+1/5+ ....=1/99999999+1/1000000000">>
Thanks Alex, it did not work but I delete .h and took of getch(); and worked however here the problem ..
The assgiment should be printed once using float variables for each calculation and I have to use one of (while ,do-while or for).
I am using visual c++ compiler.
I am so los,t please help!!!
Thank you,
Bianka