السلام عليكم ورحمة الله وبركاته
أرجو مساعدتي ,, فلقد سجلت بالموقع الناجح ,. لانني بحثت عن من يساعدني ,, ولعلكم تجيبوني بوركتم
السؤال الأول :
Exercise 3: Write a C++ program that computes and prints the factorial of a given number
n knowing that . Example: =24
Hint: Use nested loop,
Sample Output:
Enter a number: 4
Factorial of 4 is 24
السؤال الثاني :
Exercise 4: Write a C++ program that reads an integer number n then prints the numbers
between 1 to n along with their fractions.
Hint: Use nested loop.
Sample Output:
Enter a positive integer number: 3
1
1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9,
2
2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9,
3
3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9,
وشكرا جزيلا ,, بالانتظار :)