مرحبا
الاستازة طالبه مننا نعمل برنامج ندخل ل 3 اشخاص رواتب وبعدين ع حسب كل راتب نعملووو خصم اممممم فهمتو
:unsure: :unsure: :unsure:
اوكى المشكله الي بتجيني
error C2181: illegal else without matching if
#include<stdio.h>
int main()
{
int num=3000;
int money;
int a,b,d;
int opposing;
printf("person a:");
scanf("%d",&money);
printf("person b:");
scanf("%d",&money);
printf("person d:");
scanf("%d",&money);
if(money>=num)
opposing=(money*10)/100;
printf("money opposing:%d",opposing);
else opposing=(money*5)/100;
printf("money opposing:%d",opposing);
return 0;
}