Search found 4 matches

by shanto_0321
Thu Sep 29, 2011 5:35 pm
Forum: Volume 100 (10000-10099)
Topic: 10041 - Vito's Family
Replies: 90
Views: 44497

Re: 10041 - Vito's Family

#include<stdio.h>
#include<stdlib.h>
int main()
{
int t,N,a[100],m,count=0,i,j,temp,x,min;
while(scanf("%d",&t)!=EOF)
{
for(j=1;j<=t;j++)
{
scanf("%d",&N);
count=0;
for(i=1;i<=N;i++)
{
scanf("%d",&a );
}
for(i=1;i<=N;i++)
for(j=1;j<=N-1-i;j++)
{
if(a[j]>a[j+1])
{
t=a[j];
a[j]=a ...
by shanto_0321
Sun Sep 11, 2011 4:55 pm
Forum: Volume 103 (10300-10399)
Topic: 10370 - Above Average
Replies: 62
Views: 29245

Re: 10370 - above average :

when we use long double .?can you help me.please
by shanto_0321
Sun Sep 11, 2011 4:45 pm
Forum: Other words
Topic: Which problem is the easiest problem of this site?
Replies: 27
Views: 32335

Re: Which problem is the easiest problem of this site?

#include<stdio.h>
#include<conio.h>
int main()
{
long int n,t,a[99],i,s=0,k;
double c,j=0;
while(scanf("%ld",&t)!=EOF)
{
for(k=0;k<t;k++)
{
scanf("%ld",&n);
for(i=0;i<n;i++)
scanf("%ld",&a );
for(i=0;i<n;i++)
{
s=(s+a );
}
s=s/n;
for(i=0;i<n;i++)
if(a <=s)
{
continue;
}
else ...
by shanto_0321
Sun Sep 11, 2011 3:01 pm
Forum: Volume 109 (10900-10999)
Topic: 10986 - Sending email
Replies: 65
Views: 39438

Re: 10986 - Sending email

if we scan a='0',then why we do not get the value of a=48-'0'=0.
what is the problem.
#include<stdio.h>
#include<math.h>
#include<string.h>
int main()
{
char a[23];
int i,s=0,len;
while(scanf("%s",a)!=EOF)
{
printf("%lld",a);
if((a-48)==0)
break;

else
{
len=strlen(a);
i=0;
while(a[i]!='\0 ...

Go to advanced search