تسجيل الدخول

مشاهدة النسخة كاملة : اعلام الي


eces2007
2016-10-12, 11:19
بسم الله الرحمان الرحيم

من فضلكم اريد حل هذه التمارينات

http://imgur .com/fFObROl
http://imgur .com/zbBRfq1

tvforsan
2016-10-16, 18:22
التمرين الاول:

#include <stdio.h>
#include <stdlib.h>

int main()
{

int a,b,s;
a=5;
b=3;
s=a+b;
printf("%d",s);

return 0;
}
التمرين الثاني
#include <stdio.h>
#include <stdlib.h>

int main()
{

double a,b,s;
a=5;
b=3;
s=a+b;
printf("%lf",s);

return 0;
}

التمرين الثالث
#include <stdio.h>
#include <stdlib.h>

int main()
{

double a,b,s;
printf("entrer a: ");
scanf("%lf",&a);
printf("entrer b: ");
scanf("%lf",&b);
s=a+b;
printf("la somme de a+b= %lf",s);


return 0;
}
التمرين الرابع
#include <stdio.h>
#include <stdlib.h>

int main()
{

int a,b,s;
printf("entrer a: ");
scanf("%d",&a);
printf("entrer b: ");
scanf("%d",&b);
s=a*b;
printf("la somme de a+b= %d",s);


return 0;
}

eces2007
2016-10-21, 10:47
بارك الله فيك اخي