Ask a Question | Answer a Question! |
![](/img/l.gif)
Submitting your question...
ResFinder - Thousands of Practice Papers
GUYS THIS IS URGENT:
Cud u pls tell me if this code snippet is r8 for generating random no.s between 23 and 49?
while (count1!=5)
{
int num1=(int)(Math.random()*100);
if (num1<23||num1>49)
continue;
else
{
b[count1]=num1;
count1++;
}
}
Thanks a lot and all the best! |
![](//pl.respaper.com/64/akashskyash007.jpg) |
asked by Akash Ashok (akashskyash007) 7 years ago |
2 |
Is it wise to use string functions by converting number to string in number programme? |
![](//pl.respaper.com/64/catlover.jpg) |
asked by Catlover (catlover) 7 years ago |
2 |
ar[]={1,2} arr[]={2,1}
Is ar[]==arr[]?? |
![](//pl.respaper.com/64/adwaya.jpg) |
asked by Prince Adwaya (adwaya) 7 years ago |
2 |
All the best guys may all of you get 100 in computer... |
![](//pl.respaper.com/64/rachitd1212.jpg) |
asked by Rachit Dani (rachitd1212) 7 years ago |
8 |
Math.rint(-8.3)= -8.0 Math.round(-8.3)= -8
Math.rint(-8.7)= -9.0 Math.round(-8.7)= -9
Math.rint(-8.5)= -8.0 Math.round(-8.5)= -8
Math.rint(-9.5)= -10.0 Math.round(-9.5)= -9
Ckecked in BlueJ |
![](//pl.respaper.com/64/aria124.jpg) |
asked by Ãwe§♥m€ l¥k tHât (aria124) 7 years ago |
4 |
+ 1 more questions by aria124
Math.rint(8.3)=8.0 Math.round(8.3)=8
Math.rint(8.7)=9.0 Math.round(8.7)=9
Math.rint(8.5)=8.0 Math.round(8.5)=9
Math.rint(9.5)=10.0 Math.round(9.5)=10
Ckecked it in BlueJ |
![](//pl.respaper.com/64/aria124.jpg) |
asked by Ãwe§♥m€ l¥k tHât (aria124) 7 years ago |
1 |
|
i have noticed in a few past papers when a function overloading question is given in section B at the end it says 'use library functions' what does this mean ?? |
![](//pl.respaper.com/64/avmx18.jpg) |
asked by Aryan Manakame (avmx18) 7 years ago |
2 |
Is a variable description necessary at the end of program? I have never written one before, our teacher told us that comments were sufficient.. |
![](//pl.respaper.com/64/lucifermorningstar.jpg) |
asked by RetardedWeeb (lucifermorningstar) 7 years ago |
3 |
what is the range of `int' and `char' data types |
![](//pl.respaper.com/64/sahilp007.jpg) |
asked by Sahil Prasad (sahilp007) 7 years ago |
4 |