//to find the largest prime factor of the number i = 600851475143
#include<stdio.h>
unsigned long long prime(unsigned long long j);
unsigned long long max=1;
Type: Posts; User: dishagarg
//to find the largest prime factor of the number i = 600851475143
#include<stdio.h>
unsigned long long prime(unsigned long long j);
unsigned long long max=1;
these were the changes that i made in my program->
.replaced void by int
.added getch() in the end
.but still that didnt help.. :(
and i dont think so there is any problem in my compiler as this...
when i am running this program no errors are being shown butas soon as i press ctr+f9 to run the program my tc++ window closes..... please help me find out the problem....
#include<stdio.h>...
ohkay..il do that now..:)
also if i use scanf("%s",name),the program output is perfect but only i am not able to enter a sentence..
after going through all the above mentioned links..these were the changes that i had made in my program
1.replaced void by int
2.tried replacing gets() by fgets and scanf("%[^\n]s",name) but still...
ok..bt wat changes shud i mk to my source code?? ...i m jst abeginnr in programing...so dnt knw much...i tried replacing void main by int main...bt evn dat dint help..nd if i use scanf() in place f...
#include<stdio.h>
#include<string.h>
#include<ctype.h>
#include<conio.h>