تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
[C#.NET] مساعده في لغة #c
#1
]ممكن مسااعده في حل الاسئله التااالية..

TaskI

Generate a class of conversions from radians to degrees. Start the radian variables with an initial value of 0.0, and increment by π/10 until the radian amount is 2π.

TaskII
Generate one class that searches the equivalent radian value of an inputed degree number. Fix the range of radian values between 0.0 and 2π.
TaskIII

Generate a class that initializes the name and age of three students and displays them only if the user presses the number 1 from keyboard.
Task IV

- Build a console application that receives in input three numbers and displays them on the console.
- Create a method in your project with a class that does the sort of those three numbers ascending and descending then displays them on the console.

Notice: 1 π = 180 degrees.
الرد }}}
تم الشكر بواسطة:
#2
محاولتي في حل Task3
لكن انااا متااكده يوجد نقص في لحل


class class1
{
int age;
string name;
int number;
console.writeline("inter your number");
number=convert.Toint16(console.readline( ) );

public void initial( )
{
if ( number ==1)
{
console.writeline ("{0},{1},name,age);
}
else
console.writeline("wrong input");
}
}
}

static void main( )
{
class1 NameAge= new class1
NameAge.initial
console.readkey( );
}
}
الرد }}}
تم الشكر بواسطة:



التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم