Ask a Question | Answer a Question! |
![](/img/l.gif)
Submitting your question...
ResFinder - Thousands of Practice Papers
whats the difference between a method and a function |
![](//pl.respaper.com/64/mdarfath.jpg) |
asked by Rtstud (mdarfath) 6 years ago |
3 |
int z=148;
while (10>9)
{
if(z<139)
break;
System.out.println("computer" +z);
z=z-3;
}System.out.println(z);
How many times the loop will execute ?
What is the output? |
![](//pl.respaper.com/64/thejtthomas.jpg) |
asked by Tiara Elizabeth (thejtthomas) 6 years ago |
2 |
Can anyone pls... Explain me selection and and bubble sort program with the help of dry run |
![](//pl.respaper.com/64/phoenix80.jpg) |
asked by Mokshil Shah (phoenix80) 6 years ago |
2 |
If you want to practice output prediction question, here's the link --->
https://drive.google.com/folderview?id=1-2xrFu4I-iZaHlK_g288VuNvI8ZM9zqQ
I hope this will help :D
All the best! |
![](//pl.respaper.com/64/jatin_01.jpg) |
asked by J (jatin_01) 6 years ago |
6 |
Is it necessary to use public for function prototype questions
ex:can we write float sum(int x) instead of public float sum(int x) |
![](//pl.respaper.com/64/chende.jpg) |
asked by Jeff mckinley (chende) 6 years ago |
2 |
Hope rises like a phoenix from the ashes of shattered dreams. |
![](//pl.respaper.com/64/narutorocks7.jpg) |
asked by Pranav Ajinkya (narutorocks7) 6 years ago |
6 |
Is this the correct format of writing a number program using method? , if not send me the format Thank you...
import java.util.*;
class Niv
{
public static void main(String args [])
{
Scanner in = new Scanner(System.in);
System.out.println("Enter a number");
int n=in.nextInt();
int num=n;
int sum=sumOfDigits(n);
if(num%sum==0)
System.out.println(num+" is a Niven number");
else
System.out.println(num+" is not a given number");
}
public static int sumOfDigits(int g)
{
int sum=0;
while(g>0)
{
int rem;
rem=g%10;
sum=sum+rem;
g=g/10;
}
return sum;
}
} |
![](//pl.respaper.com/64/uttamsoren1735.jpg) |
asked by Uttam Soren (uttamsoren1735) 6 years ago |
1 |
Anyone have together with biology notes...pls share with me drive link or mai me..(CH:reproduction, nervous system and genetics..)
..pls |
![](//pl.respaper.com/64/drdevansh.jpg) |
asked by Devansh Tripathi (drdevansh) 6 years ago |
2 |
Why is an object called a static data member?? |
![](//pl.respaper.com/64/aayushjoshi.jpg) |
asked by Aayush Joshi (aayushjoshi) 6 years ago |
1 |
can anyone tell me the problem with this snippet as I am not getting my output.
Purpose:
to enter 10 names of cities and their populations:
import java.util.Scanner;
class cit_pop
{
void main()
{
Scanner in=new Scanner(System.in);
System.out.println("Please enter the names of 10 cities and their populations:");
int p[]=new int[10];
String c[]=new String[10];
for(int i=0;i<10;i++)
{
System.out.println("Please enter the names of cities and their populations:");
c[i]=in.nextLine();
p[i]=in.nextInt();
} |
![](//pl.respaper.com/64/ashutosh_dash.jpg) |
asked by Ashutosh Dash (ashutosh_dash) 6 years ago |
4 |