#include<iostre am>
using namespace std;
int main()
{
double result=0,top,be low,i;
cout<<"enter 2 numbers:";
cin>>top>>below ;
for(i=1;i<=belo w;i++)
{
result+=(top/i);
}
cout<<"result=" <<result;
return 0;
}
I wrote a program like this I don't know if this is...
User Profile
Collapse
-
-
reading the input from file phone.txt and writes them to output.txt
I wrote a C++ source code as "phone.txt" that is below and now I want a program that reads the input from this file "phone.txt" and writes the input to "output.txt "
#include <iostream>
#include <string>
using std::cout;
using std::endl;
using std::cin;
#include <cstring>
#include <cstdlib>
int main()... -
tnt84 started a topic program that reads a text file and prints out the word frequencies using structurein Cprogram that reads a text file and prints out the word frequencies using structure
I want to write a program that reads a text file and prints out the word frequencies using structure but I don't know exactly what the word frequency is and how can I write that program using structure
No activity results to display
Show More
Leave a comment: