0
Question can not start
7 Réponses
+ 1
You're welcome..
+ 1
what?
+ 1
You must Assign values before you using it..
So change :
int a1,b1,c1; to
int a1=0, b1=0, c1=0;
edit:
Be Clear about question.. otherwise difficult to understand...
+ 1
Thank's
0
int a , b , c ;
int a1, b1, c1;
a=Convert.ToInt32(Console.ReadLine());
b=Convert.ToInt32(Console.ReadLine());
c=Convert.ToInt32(Console.ReadLine());
if(a<c)
{
if(a<b)
{ a1=a;
if (b<c)
b1=b;
c1=c;
}
else{
a1=a;
b1=c;
c1=b;
}
}
else if (b<c)
{ if (b<a)
a1=b;
b1=c;
c1=a;
}
else if(c<a)
{ if (c<b)
if(a<b)
{ a1=c;
b1=a;
c1=b;
}
else {
a1=c;
b1=b;
c1=a;
}
}
Console.WriteLine(a1 );
Console.WriteLine(b1 );
Console.WriteLine(c1);
Console.ReadLin
0
Use of unassigned local variable
0
Why