left] ]السلام عليكم
لو سمحتم اخواني ابغى احد يشرحلي فكرة هذا السؤال ماابغى حل ابي الفكره فقط
Write a program that read an integer number and prints a triangle. Direction of the triangle and length of each side depends on the input number as shown in sample boxes below. Triangle direction is up when the input number is positive, otherwise is down.
وهذا شكل الاوت بوت راح يكون
Enter number: -5
*****
****
***
**
*
وهذا مدخل ثاني
Enter number: 4
*
**
***
****
واريد شرح كامل ومفصل للاري لاني مب فاهمه فيه شيء ابد
وشكرا جزيلا لكم[/ ]
