السلام عليكم ورحمة الله وبركاته
الكود هذا يعمل معي كويس بس اخر مطلوب في السؤال مو مفهومه ممكن تشرحوه لي
1. Write a program which reads two integer values. If the first is less than the second, print the message up. If the second is less than the first, print the message down If the numbers are equal, print the message equal. If there is an error reading the data, print a message containing the word Error and perform exit.
الكــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــود
#include<stdio.h>
int main()
{
int x;
int y;
printf("Enter the first integer: ");
scanf("%d", &x);
printf("Enter the second integer: ");
scanf("%d", &y);
if (x > y)
{
printf("Up");
}
else
{
if (x < y)
{
printf("Down");
}
else
{
if(x==y)
{
printf("Equal");
}
else
{
printf("Error");
}
}
}
}
وشكرااااااا لكم :blush: :) :cool: