No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
This is a program to find the least common multiple of numbers 1 to 20. I dont know why it doesnt work. Somebody please help me out [code=c] #include<iostream> #include<conio.h> #define A 100 using namespace std; int i; bool IsItDiv(int); int main() { int num=21;bool tf; tf=IsItDiv(num);cout<<"The number thats divisible … |
|
hello. Ive been using a pretty long number in my program . its problem3 of the euler project . Its 600851475143 . What data type do I use for this??? |
|
Re:
i need to make a program that finds all primes between some numbers the biggest number is 1000000000. the code that i have works fine, the only problem is that what i thought that would solve this, is too slow [code] #include <stdio.h> int main(){ FILE *fin=fopen("in.txt","r"); int t,n1[10],n2[10],i,j,ex,k; fscanf(fin,"%d\n",&t); … |