السلام عليكم ورحمه الله وبركاته
لدي أسئله في السي ومعها اجاباتها أريد منكم أخباري هل أجابتي صحيحه أو خاطئه وأخباري ما هو الصح
write a single pseudocode statment that indicates each of the following
1-assing the sum of variables x,y,and z to variable p
الأجابه
p=x+y+z
أو اجابه أخرى
sum+=x+y+z=p
2-the following condition is to be tested in an if/else selection structure :the current value of variable m is greater than twice the current value of variable v
ألأجابه
int m,v
m=4
v=m*m
if(m>v
printf("the greater is m
else
printf("the greater is v
4-formulate a pseudocode algorithm for each of the following
1- obtain a series of positive numbers from the keybord and determine and display the sum of the numbers assume that the user types the sentinel value -1 to indicate "end of data entry"
الأجابه
يطلب مني أجمع عددين موجبين
وعندما تصل القيمه الى -1
يظهر رساله
end of data entry
أستخدم فيها while
وشكرا لكم