Search found 2 matches

by safayat rahaman
Sun Jul 29, 2007 7:47 am
Forum: Volume 100 (10000-10099)
Topic: 10070 - Leap Year or Not Leap Year and ...
Replies: 233
Views: 58775

why runtime error?please help is my code #include<stdio.h> #include<string.h> main() { char year[10000]; long a,b,c,d,e,l,rest,flag,sum,flag4,flag11,ten; long arr[5]; while((l=strlen(gets(year)))>0) { rest=0; flag=0; flag4=0; flag11=0; for(a=0;a<=l-1;a++) {rest=rest*10+(year[a]-48); rest=res...
by safayat rahaman
Sun Jul 29, 2007 7:29 am
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 26911

why wrong answer.please help me .give me some critical input output. here is my code_ #include<stdio.h> #include<math.h> long power(long,long); main() { long arr[10000]; long a,pwr,b,c,d,e,i,flag,n,flag1,n1,h2; long j,wm,h,h1,NWM,H; arr[0]=1; arr[1]=2; i=1; for(j=3;j<10000;j=j+2) { for(a=1;arr[a]<=s...

Go to advanced search