السلام عليكم ورحمة الله وبركاته
قمت بعمل بنامج يعد من 1الى الميه
ويقوم بضرب كل عدد برقم 2
ولكن البرنامج لا يعمل
يبلغني بان هناك
"missing return statment"
ممكن مساعدتكم؟؟
نص البرنامج كالتالي:
import java.io.*;
public class studying
//**********************
{
public static void main(String[]
argc)
{
int total=0;
int total2=0;
total2 = multiply(total,2);
System.out.println(total2);
}
//**********************
public static int count()
{
int total;
for(total=0;total<101;total++)
return total;
}
//**********************
public static int multiply(int
n1, int n2)
{
int rt2;
rt2 = n1*n2;
return rt2;
}
}