## Search found 3 matches

Fri Sep 03, 2010 9:16 pm
Forum: Volume 4 (400-499)
Topic: 406 - Prime Cuts
Replies: 187
Views: 21793

### prime cut..help me...(406)

i am getting W...waiting 4 some suggation....
Mon Aug 30, 2010 9:11 pm
Forum: Volume 103 (10300-10399)
Topic: 10323 - Factorial! You Must be Kidding!!!
Replies: 106
Views: 31759

### Re: 10323 - Factorial! You Must be Kidding!!!

can anyone help me...this code keep saying wrong answer.. #include<stdio.h> long long int fact(long long int x); long long por(long long int z); int main(){ long long int n,z,y; while(scanf("%llu",&n)==1){ z=fact(n); y=por(z); } return 0;} long long int fact(long long int x){ int i,s=1; for(i=2;i<=x...
Fri Aug 20, 2010 10:30 am
Forum: Volume 107 (10700-10799)
Topic: 10783 - Odd Sum
Replies: 34
Views: 14871

### Re: 10783 - Odd Sum

i am new at progarmming..... i am having problem with this problem.. it keep saying runtime error.. here is the source code: #include<stdio.h> int main(){ int n,i,j,l,s,m=0,*a,*b; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d %d",&a ,&b );} for(i=0;i<n;i++){ s=0; for(j=a ;j<=b ;j++){ if(j%2==1) s+=j;}...