kookai
27-07-2006, 10:42 PM
السلام عليكم
الاخوه الكرام اسعد الله اوقاتكم بالخير والمحبه
لدي مشكله في حل هذه المسأله ارجو ان تساعدوني في اجاد اين تكون المشكله
error
المطلوب ادخال
inputs a student's average and returns
4
if a student's average is 90 - 100
, 3
if the average is 80 - 89, 2 if the average is 70 - 79
,
1
if the average is 60 - 69 and
0
if the average is lower than 60.
هذا الذي قمت به لكن مع الاسف يظهر لي
Error executing cl.exe.
xss.exe - 4 error(s), 0 warning(s)
#include <iostream.h>
void main ()
**
int s;
cout<< "Enter the value of s: ";
cin >> s;
if ((s>=90) && (s <=100))
**
return 4;
}
else if((s>=80) && (s<=89))
**
return 3;
}
else if ((s>=70) && (s<=79))
**
return 2;
}
else if ((s>=60) && (s<=69))
**
return 1;
}
}
انتظر مشاركتكم الكريمه
الاخوه الكرام اسعد الله اوقاتكم بالخير والمحبه
لدي مشكله في حل هذه المسأله ارجو ان تساعدوني في اجاد اين تكون المشكله
error
المطلوب ادخال
inputs a student's average and returns
4
if a student's average is 90 - 100
, 3
if the average is 80 - 89, 2 if the average is 70 - 79
,
1
if the average is 60 - 69 and
0
if the average is lower than 60.
هذا الذي قمت به لكن مع الاسف يظهر لي
Error executing cl.exe.
xss.exe - 4 error(s), 0 warning(s)
#include <iostream.h>
void main ()
**
int s;
cout<< "Enter the value of s: ";
cin >> s;
if ((s>=90) && (s <=100))
**
return 4;
}
else if((s>=80) && (s<=89))
**
return 3;
}
else if ((s>=70) && (s<=79))
**
return 2;
}
else if ((s>=60) && (s<=69))
**
return 1;
}
}
انتظر مشاركتكم الكريمه