4 תשובות
שואל השאלה:
מילה למילה
מילה למילה
אנונימית
שואל השאלה:
מניחה שלא
מניחה שלא
אנונימית
זה תכנית שקולטת מספר אחד ומדפיסה את העצרת שלו כמובן שזה סי שארפ אז אין לי כל כך ידע בזה אם היה לי ידע הייתי מצליח לענות על השאלה בשלמותה
using system;
public class factorialexample
{
public static void main(string[] args)
{
int i,fact=1,number;
console.write("enter any number: ");
number= int.parse(console.readline());
for(i=1;i<=number;i++){
fact=fact*i;
}
console.write("factorial of " +number+" is: "+fact);
}
}
using system;
public class factorialexample
{
public static void main(string[] args)
{
int i,fact=1,number;
console.write("enter any number: ");
number= int.parse(console.readline());
for(i=1;i<=number;i++){
fact=fact*i;
}
console.write("factorial of " +number+" is: "+fact);
}
}
שואל השאלה:
אין לי מושג. שאלה לא מובנת. די קיוויתי שיבינו פה
אין לי מושג. שאלה לא מובנת. די קיוויתי שיבינו פה
אנונימית
באותו הנושא: