^^^^
لانك انتي اول شئ سويتي العملية وبعدين scanf فهو فرض رقم ويحطلك رقم طويل
اعكسيها سوي اول شئ scanf بعدين العمليات
اذا مافهمت قوليلي افهمك اكثر
|
مرحباً عزيزتي /
شكراً جزيلاً على المساعده
انتِ تقصدي كذا ؟
كود:
#include <stdio.h>
#include <conio.h>
#include <math.h>
void main ()
{
int x,y,z ;
double n ;
printf("Please enter two no. that you wante to add them:%d%d\n",x,y);
scanf("%d",&z);
z=x+y;
printf("Please enter two no. that you wante to subtract them:%d%d\n",x,y);
scanf("%d",&z);
z=x-y;
printf("Please enter two no. that you wante to multply them:%d%d\n",x,y);
scanf("%d",&z);
z=x*y;
printf("Please enter two no. that you wante to find the remainder for them:%d%d\n",x,y);
scanf("%d",&z);
z=x%y;
printf("Please enter two no. that you wante to divid them:%d%d\n",x,y);
scanf("%d",&n);
n=x/y;
getch();
}
نفس المشكله تكررت ..!
ما يطلع أخطاء .. بس يطلع warning
ان الـ x و الـ y في printf الأولى غير معرفين !