السلام عليكم
كييييييييييفكم ؟؟
وإليكم السؤال الاول:
Question 1:
Write a program to find the result of multiplication of the digits of an integer entered by a user.
Example:
If the integer is 1453, then the result is 1*4*5*3=60.
والسؤال الثاني :
Question 2:
Write a program to divide a text file into two parts. The first file contains the first half of the original file, and the second file contains the second half of the original file.
Example:
If the original file contains: 1 90
2 89
3 78
4 67
5 84
6 80
After execution, you will have two files. The first contains:
1 90
2 89
3 78
And the other contains:
4 67
5 84
6 80
والسؤال الثالث :
Question 3:
Write a logical function, is_prime, that takes an integer number and determines if the number is prime or not. Note: A prime number is one that does not have proper factors. Write a main function that makes use of the is_prime function to find and print all the odd prime numbers from 2 to 100 which divides 5 without remainder.
أرجو الرد بأسرع وقت مممكن ، وارجو إرسال البرمجة كاملة على برنامج C++
وشكراً
كييييييييييفكم ؟؟
وإليكم السؤال الاول:
Question 1:
Write a program to find the result of multiplication of the digits of an integer entered by a user.
Example:
If the integer is 1453, then the result is 1*4*5*3=60.
والسؤال الثاني :
Question 2:
Write a program to divide a text file into two parts. The first file contains the first half of the original file, and the second file contains the second half of the original file.
Example:
If the original file contains: 1 90
2 89
3 78
4 67
5 84
6 80
After execution, you will have two files. The first contains:
1 90
2 89
3 78
And the other contains:
4 67
5 84
6 80
والسؤال الثالث :
Question 3:
Write a logical function, is_prime, that takes an integer number and determines if the number is prime or not. Note: A prime number is one that does not have proper factors. Write a main function that makes use of the is_prime function to find and print all the odd prime numbers from 2 to 100 which divides 5 without remainder.
أرجو الرد بأسرع وقت مممكن ، وارجو إرسال البرمجة كاملة على برنامج C++
وشكراً