![]() |
|
[C#.NET] مساعده في لغة #c - نسخة قابلة للطباعة +- منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب (http://vb4arb.com/vb) +-- قسم : قسم لغة السي شارب C#.NET (http://vb4arb.com/vb/forumdisplay.php?fid=175) +--- قسم : قسم اسئلة C#.NET (http://vb4arb.com/vb/forumdisplay.php?fid=176) +--- الموضوع : [C#.NET] مساعده في لغة #c (/showthread.php?tid=10682) |
مساعده في لغة #c - روح الامل - 15-11-14 ]ممكن مسااعده في حل الاسئله التااالية.. 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. RE: مساعده في لغة #c - روح الامل - 15-11-14 محاولتي في حل 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( ); } } |