السلام عليكم
أتمنى مساعدة في حل هذا السؤال
Write a complete C program that process file data, and outputs the results on both: screen and another file.
your program should open a file named input.txt, which will have one data, that is an integer consist of 4 digits (example: 1584). then it should store it in a variable in memory then process this number by which it calculates the summation of all its gigits.
example: if the file contains the number 1584, then the summation of its digits = 1+5+8+4 = 18. the result should be printed on another file named output.txt, and also on screen
برنامج السي مش مشكلة بس ما بعرف كيف احط الان بوت في ملف و الاوت بوت في ملف
و اذا دليتوني على طريقة للبرمجة بكون ممنون لاني بواجه مشكلة في الكورس
