• 0
  • مالي خلق
  • أتهاوش
  • متضايق
  • مريض
  • مستانس
  • مستغرب
  • مشتط
  • أسولف
  • مغرم
  • معصب
  • منحرج
  • آكل
  • ابكي
  • ارقص
  • اصلي
  • استهبل
  • اضحك
  • اضحك  2
  • تعجبني
  • بضبطلك
  • رايق
  • زعلان
  • عبقري
  • نايم
  • طبيعي
  • كشخة
  • صفحة 1 من 2 12 الأخيرةالأخيرة
    النتائج 1 إلى 15 من 19

    الموضوع: please I need some help

    1. #1
      التسجيل
      01-08-2003
      المشاركات
      17
      المواضيع
      4
      شكر / اعجاب مشاركة

      please I need some help

      Hi everyone;
      I'm a new member in this lovely forum and I am really in need
      for your help:
      I'm a freshman at the programing department and I'v found a problem in
      solving the following question:

      -Write a program to insert ten numbers and type the largest one and the
      smallest one.

      Well, my problem that I don't know how to make the program type the
      smallest number.

    2. #2
      التسجيل
      25-01-2004
      المشاركات
      436
      المواضيع
      32
      شكر / اعجاب مشاركة

      Re: please I need some help

      بأي لغة برمجة تريد ؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟

    3. #3
      التسجيل
      01-08-2003
      المشاركات
      17
      المواضيع
      4
      شكر / اعجاب مشاركة

      Re: please I need some help

      ,oh
      Iam sorry I 'v forgot
      ++the programing language is c
      thanks alot for your consideration

    4. #4
      التسجيل
      08-01-2004
      المشاركات
      39
      المواضيع
      0
      شكر / اعجاب مشاركة

      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

    5. #5
      التسجيل
      01-08-2003
      المشاركات
      17
      المواضيع
      4
      شكر / اعجاب مشاركة

      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

    6. #6
      التسجيل
      22-01-2004
      المشاركات
      5
      المواضيع
      1
      شكر / اعجاب مشاركة

      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);
      }

    7. #7
      التسجيل
      01-08-2003
      المشاركات
      17
      المواضيع
      4
      شكر / اعجاب مشاركة

      Re: please I need some help

      Hi there
      ;thank you very much for your help
      . I'm so grateful

    8. #8
      التسجيل
      08-01-2004
      المشاركات
      39
      المواضيع
      0
      شكر / اعجاب مشاركة

      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

    9. #9
      التسجيل
      08-01-2004
      المشاركات
      39
      المواضيع
      0
      شكر / اعجاب مشاركة

      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

    10. #10
      التسجيل
      22-01-2004
      المشاركات
      5
      المواضيع
      1
      شكر / اعجاب مشاركة

      Re: please I need some help

      يا عزيزي بعد ما كتبت البرنامج بالصورة المثالية
      تمت إزاحة الأقواس لبداية بعض السطر بصورة تلقائية من
      مركز التحكم بالمنتدى لذلك فقط انقل الأقواس والفاصلة المنقوطة
      إلى نهاية السطر التي حدث بها خلل
      وتقبل تحياتي

    11. #11
      التسجيل
      01-08-2003
      المشاركات
      17
      المواضيع
      4
      شكر / اعجاب مشاركة

      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

    12. #12
      التسجيل
      22-01-2004
      المشاركات
      5
      المواضيع
      1
      شكر / اعجاب مشاركة

      Re: please I need some help

      ولا يهمك ... مبرووووووك


    13. #13
      التسجيل
      01-08-2003
      المشاركات
      17
      المواضيع
      4
      شكر / اعجاب مشاركة

      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

    14. #14
      التسجيل
      08-07-2003
      الدولة
      في بلاد لايرفع بها اسم الله
      المشاركات
      1,821
      المواضيع
      60
      شكر / اعجاب مشاركة

      Re: please I need some help

      لكتابة اوامر البرامج استخدمو امر الكود

      كود:
      (test)
      موجود عن الرد على شكل رمز رقم الهاتف

      طبعا هذا الامر لتحاشي مشكلة ان المنتدى يزيح الاقواس لانه عربي!

    15. #15
      التسجيل
      08-07-2003
      الدولة
      في بلاد لايرفع بها اسم الله
      المشاركات
      1,821
      المواضيع
      60
      شكر / اعجاب مشاركة

      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);
      }

      اعتقد البرنامج الان صح

    صفحة 1 من 2 12 الأخيرةالأخيرة

    ضوابط المشاركة

    • لا تستطيع إضافة مواضيع جديدة
    • لا تستطيع الرد على المواضيع
    • لا تستطيع إرفاق ملفات
    • لا تستطيع تعديل مشاركاتك
    •