| 
				 رد: مساعدة في حل واجب البرمجة 
 
طيب ايش المشكلة في الكود هدا بعد اذنكم 
 #include <stdio.h>
 int main ()
 {
 int id;
 int mark;
 
 printf("please enter your id \n\n: ");
 scanf("%d",&id);
 printf("please enter your mark \n: ");
 scanf("%d",&mark);
 
 mark=mark/10;
 
 printf("\nyour id : %d \n",id);
 printf("\nyour degree : %d \n\n",(mark*10));
 switch (mark)
 {
 case 10 :
 case 9 :
 Printf("your gpa is a \n.");
 break;
 case 8 :
 Printf("your gpa is b \n.");
 break;
 case 7 :
 Printf("your gpa is c \n.");
 break;
 case 6 :
 Printf("your gpa is d \n.");
 break;
 case 5 :
 case 4 :
 case 3 :
 case 2 :
 case 1 :
 case 0 :
 Printf("your gpa is f \n.");
 break;
 
 default :
 Printf("the mark out the range, please enter the label of (100 - 0) thank you .");
 break;
 }
 
 return (0);
 }
 |