Assignment #1
2 posters
C# Course :: About Course :: Assignments
Page 1 of 1
Assignment #1
You are required to make a program that prints out the following on the screen:
1 2 3
4 5 6
7 8 9
Hints:
- use a for loop
- After using Console.WriteLine(), any new output to the screen will start from a new line, unlike using Console.Write() which will not make a new line and further output will just continue on the existing line.
Any questions on the program should be posted here isA
Deadline for assignment delivery is Saturday 8/9
Assignments should be sent to khaled3abbas@gmail.com
Thank you
1 2 3
4 5 6
7 8 9
Hints:
- use a for loop
- After using Console.WriteLine(), any new output to the screen will start from a new line, unlike using Console.Write() which will not make a new line and further output will just continue on the existing line.
Any questions on the program should be posted here isA
Deadline for assignment delivery is Saturday 8/9
Assignments should be sent to khaled3abbas@gmail.com
Thank you
PLZ
لو سمحت اشرح الجزء ده بالعربي
fter using Console.WriteLine(), any new output to the screen will start from a new line, unlike using Console.Write() which will not make a new line and further output will just continue on the existing line.
AHMED- Guest
Re: Assignment #1
Console.WriteLine():
لما تدخلها حاجة هتطلعها على الشاشة، وتنزل على سطر جديد بحيث لو استخدتها تانى الكلام ال بعد كده هيبقى فى سطر جديد
Console.Write():
لما تدخلها حاجة بتحطها ومبتنزلش على سطر جديد فا اى حاجة تانية هتكمل فى نفس السطر
جرب تشغل الكود ده
Console.WriteLine("Testing");
Console.WriteLine("Is this a new line?");
Console.ReadLine();
وجرب ده
Console.Write("Testing");
Console.WriteLine("Is this a new line?");
Console.ReadLine();
وشوف الفرق ما بينهم
لما تدخلها حاجة هتطلعها على الشاشة، وتنزل على سطر جديد بحيث لو استخدتها تانى الكلام ال بعد كده هيبقى فى سطر جديد
Console.Write():
لما تدخلها حاجة بتحطها ومبتنزلش على سطر جديد فا اى حاجة تانية هتكمل فى نفس السطر
جرب تشغل الكود ده
Console.WriteLine("Testing");
Console.WriteLine("Is this a new line?");
Console.ReadLine();
وجرب ده
Console.Write("Testing");
Console.WriteLine("Is this a new line?");
Console.ReadLine();
وشوف الفرق ما بينهم
finished
بفضل الله خلصته واشتغل معايا
ابعتهوالك ازاي
code يعني ولا ايه
هو ينفع ابعتلك على ميل جوجل من هوتميل عادي ؟
ابعتهوالك ازاي
code يعني ولا ايه
هو ينفع ابعتلك على ميل جوجل من هوتميل عادي ؟
AHMED- Guest
Re: Assignment #1
اه مطلوبة يا فقى
----
فى ناس شادة حيلها وبدأت تبعب الواجب اهه
يا ريت الباقى كلهم يشتغلو ويبعتوه
شدو حيلكم
----
فى ناس شادة حيلها وبدأت تبعب الواجب اهه
يا ريت الباقى كلهم يشتغلو ويبعتوه
شدو حيلكم
Char[] Error
ana masalan 3ayez a3mel:
Console.WriteLine(i, i + 1, i + 2);
bey2ol en fe:
has some invalid arguments
leh ba2a mayenfa3sh abtedy el statement be integer mesh character?
Console.WriteLine(i, i + 1, i + 2);
bey2ol en fe:
has some invalid arguments
leh ba2a mayenfa3sh abtedy el statement be integer mesh character?
Re: Assignment #1
Eng.Ahmed wrote:ana masalan 3ayez a3mel:
Console.WriteLine(i, i + 1, i + 2);
bey2ol en fe:
has some invalid arguments
leh ba2a mayenfa3sh abtedy el statement be integer mesh character?
yenfa3 ya basha
bas enta mesta7'dem fasla (,) we mayenfa3sh testa7'dem fasla ella law heyya gowwa string
try this:
Console.WriteLine(i+" "+( i + 1)+" "+(i + 2));
C# Course :: About Course :: Assignments
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|