السلام عليكم ورحمه الله وبركاته
لدي بعض الأسئله في السي وهذه محاولتي في حل الأسئله
السؤال الأول
identify and correct the errors in each of the following statements
السؤال يطلب مني أن أضع صح أو خطأ في العبارات التاليه
1- ;( if (number=> largest
; largest==number
تصحيح الخطأ هو وضع =< بدلا من <=
2- ;( printf("remainder of %d divided by %d isn",x,y,x%y
هذه العباره صحيحه
السؤال الثاني
write a single c statements or line that accomplishes each of the following
السؤال يطلب كتابه عبارات في لغه السي أو سطر لنحصل على التالي
1-assign the product of variables b and c to variable a
حل السؤال هو ; a=b*c
2- state that a program a sample payroll calculation (i.e.,use text that help to document a program
حل السؤال هو /* i.e.,use text that help to document a program*/
السؤال الثالث
stat which of the following are true and which are false .if false, explain your answer
1-the follwoing are all valid variable names
_under_bar_
هذه صحيحه
2-the following are all invalid names
h22
هذه خاطئه لآنها صحيحه
السؤال الرابع
what if anything prints when each of the following c statements is performed ?if nothing prints then answer "nothing" assume x=2 and y=3
1-z=x+y
حل السؤال هو "nothing"
2-/* (printf("x+y=%d",x+y */
حل السؤال هو "nothing"
3- ;(scanf("%d%d",&x,&y
حل السؤال هو "nothing"
4- ; ("printf("n
حل السؤال هو "nothing"
السؤال الخامس
لدي اربعه اسئله لم أفهم ما هو المطلوب منها
أريد توضيح المطلوب في السؤال وأنا أقوم بحلها بمفردي
1-write a program that prints the numbers 1 to 4 on the same line writ the program using the follwoing methods
a0)using one printf statment with no conversion specifiers
b0) using four printf statements
c0) using one printf statments with four conversion specifiers
2-write a program that read in two integers and determines and prints if
the first is a multiple of the second (hint use the modulus operator
3-write a c program that prints the integer equivalents of some uppercase letters,lowercase letters,digits and special symboly .as a minimum ,determine the integer equivalents of the follwoing :A B C a b c 0 1 2 $ * + / and the blank character
4-write a program that inputs one five -digit number , separates the number into its individual digits and prints the digits separated from one another by three spaces each [hint : use combinations of integer division and modulus ] for example , if the user types in 42139 the program should print
9 3 1 2 4
وشكرا لكم