How, dont get it. I am an absolute beginner. how will I write everything in a file? please give a brief details.
Type: Posts; User: Tamim Ad Dari
How, dont get it. I am an absolute beginner. how will I write everything in a file? please give a brief details.
I have found the problem. Its not in the sourcecode.I repeat.. Its not the source code. Its actually in the display window of the program.when upto k<298 the program works fine. but when k=299 it...
I have done as you said,but yet it outs 75,62 which does not make any sense.
I certainly know how to find the prime factors of a number.In fact that is the way I used in the program where user gives an input and sum of the prime factors are outputted. there is no problem in...
Well, I want this program to print the sum of factors of all numbers from 2 to 1000. such as,for k=2 it is2,k=3 it is 3,k=4 the factors are 2 and 2 and sum is 4,k=5 it is 5,k=12 factors are 3,2,2 and...
sorry to bother, but I have modified my program so that it displays the sum of the factors of all the numbers upto 1000. here it is acting really weird!
#include <iostream>using namespace std;
...
thanx ,that work.Actually I dont understand the function of the expression "endl;"
Hi, I am trying to write a program that will print out the factors of a number user inputted and than print the sum of the factors. I came up with this
#include <iostream>using namespace std;
...