Re: please I need some help
بأي لغة برمجة تريد ؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟
Re: please I need some help
,oh
Iam sorry I 'v forgot
++the programing language is c
thanks alot for your consideration
Re: please I need some help
first of all there is a quistyion which i would like to ask you if you want to use functions or not
if you won't iw ill tell you but if you want with functions tell me and i will give you the soluitin
first you have to make an array of any number kind
then you have to make aloop to entering the numbers
then make another loop to test ther largest one (here you have to define another array of the same kiond and the same size (call it temp[the array size]) to know the largest and the smallest)
when you finish the test you will print the (temp[0]) and the smallest one will be the last temp
if you need the program written in txt file tell me and i will do it but i did not write it now for letting you to make it by your self;) ;) ;) :biggthump :biggthump :biggthump :ciao: :ciao: :ciao:
Re: please I need some help
Hi there
first of all i wanna say thanks alot
for answering my question
and i hope that you can tell me how can i
write the program using the function
Re: please I need some help
إليك هذا البرنامج بلغة c وما عليك إلا تعديل جمل الادخال والاخراج حسب عبارات ++c
مع تمنياتي بالتوفيق
#include<stdio.h>
#define N 10
main
{
int a[N],i,R,S;
for (i=1;i<=N;i++)
{
printf(''Enter value no.:%d'',i);
scanf(''%d'',&a[i]);
}
for (i=1;i<=N;i++)
{
R=a[i];
if R<a[i+1] then R=a[i+1];
}
printf('' The largest value is:%d'',R);
for (i=1;i<=N;i++)
{
S=a[i];
if S>a[i+1] then S=a[i+1];
}
printf('' The smallest value is:%d'',S);
}
Re: please I need some help
Hi there
;thank you very much for your help
. I'm so grateful
Re: please I need some help
if you want to know the program by the funcion way here you are
you will declare afunction and pass an int array and returnan int type (for the largest on) and this function will be for the bigges one and also declare a function and pass an arrya in type and return an int type for the smallest one
an ieach function you will declare another in array type for the testing then in the first function (the largest one be the last array) the second function()for the smallest one you have to define another array tpe for the testing then the smallest one will be th first one and thats all
any way if you need more help plz send me and i will be there
Re: please I need some help
:biggthump :biggthump :biggthump if you want to know the program by the funcion way here you are
you will declare afunction and pass an int array and returnan int type (for the largest on) and this function will be for the bigges one and also declare a function and pass an arrya in type and return an int type for the smallest one
an ieach function you will declare another in array type for the testing then in the first function (the largest one be the last array) the second function()for the smallest one you have to define another array tpe for the testing then the smallest one will be th first one and thats all
any way if you need more help plz send me and i will be there
Re: please I need some help
يا عزيزي بعد ما كتبت البرنامج بالصورة المثالية
تمت إزاحة الأقواس لبداية بعض السطر بصورة تلقائية من
مركز التحكم بالمنتدى لذلك فقط انقل الأقواس والفاصلة المنقوطة
إلى نهاية السطر التي حدث بها خلل
وتقبل تحياتي
Re: please I need some help
Hello there
thank you very much for all the help you've gave me
and I'm sooooooooo grateful
Re: please I need some help
Re: please I need some help
Hi again
well I need anthor favour from you
do you know from any website I can download good books of C++ like
(C++how to program )
?or any other good books
I'm waiting for your answer
Re: please I need some help
لكتابة اوامر البرامج استخدمو امر الكود
موجود عن الرد على شكل رمز رقم الهاتف
طبعا هذا الامر لتحاشي مشكلة ان المنتدى يزيح الاقواس لانه عربي!
Re: please I need some help
كود:
#include<stdio.h>
#define N 10
main
{
int a[N],i,R,S;
for (i=1;i<=N;i++)
{
printf(''Enter value no.:%d'',i);
scanf(''%d'',&a[i]);
}
for (i=1;i<=N;i++)
{
R=a[i];
if R<a[i+1] then R=a[i+1];
}
printf('' The largest value is:%d'',R);
for (i=1;i<=N;i++)
{
S=a[i];
if S>a[i+1] then S=a[i+1];
}
printf('' The smallest value is:%d'',S);
}
اعتقد البرنامج الان صح :)