الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

How To Create A Function

بدأه العيسري44 في 9 مايو 2008 · 2 رد · 705 مشاهدة · في JavaSE
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

create table student(studid number primary key,studname varchar2(20),mark1 number,mark2 number,mark3 number);

Q1.how to create a function that will accept the three marks of a student and will determine and return the average mark to the calling block.

#2

أولاً أين محاولاتك ؟

ثانياً هلا كتبت بالعربية

تحياتي

حزمة المحرك الإصدارة 0.8

أي أحد يجد أني ظلمته فليراسلني

وبإذن الله لو كان له حق سيأخذه

728x90.png

#3

here is the code

public double average (double mrk1,double mrk2,double mrk3,int no_of_marks) 
double avg;
avg = mrk1+mrk2+mrk3 / no_of_marks;
return avg;
}

مواضيع مشابهة