Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
smiling a$$asin
Alternative for 'GOTO' function in java?
I know that Goto is a reserved function in java,i wonder if there is any alternatives to it.I could not understand how to use label and continue instead of goto.
Here am presenting a C code to friend the prime numbers which has goto function employed in it.I want you to re-write this code using java with the same functionalities.
#include <stdio.h>
#include <conio.h>
void main()
{
int n,m,k,i,max;
char c;
clrscr();
repeat: max=0;
k=2;
n=1;
printf("You want prime numbers upto:- ");
scanf("%d",&max);
printf("
");
for (i=1;i<=max;i++)
{
again: m=(n/k)*k;
if (m!=n)
k=k+1;
else
goto try1;
if (k < n/2)
goto again;
else
printf("%d",n);
printf(" ");
try1: n=n+1;
k=2;
}
fflush(stdin);
printf ("
Do you want to continue?(y/n):- ");
scanf("%c",&c);
if (c=='y')
goto repeat;
getch();
}
please help me,iam new to java.
3 AnswersProgramming & Design1 decade agohow to install nvidia display drivers on ubuntu(linux) 8.10?
iam totally new to linux and its disgusting......however...when open the setup file in terminal it says...NVIDIA INSTALLTION SHOULD RUN WITH A ROOT".. i think it will need root previleges to run...but i can't find a way to do it.......
googling could not help me..as what they r saying r really complicated...as iam totally....totally....noob.....in linux just installed ubuntu 8.10 with hell of probs.....
any one using it pls help m..
2 AnswersSoftware1 decade agohow much memory is supported by n72?
coz my n72 memory card crashed and i want to buy a new one..when i surfed web i came to know that it can support upto 2gb...but i want it confirmed.....any using the phone pls tell me....
2)another thing i searched 4 memory cards in ebay ....there r memory cards of SD type ....n72 supports mini cards.....when i surfed web i came to know that n72 supports MMC cards.....now what is the difference between 1GB MINI SD and 1GB MMC card?? and what N72 supports?
2 AnswersMobile Phones & Plans1 decade agoCan u pls describe in detail what backup utility software actually does?
now i know that it is used to backup our data...i've used one software called SOSonlinebackup which is used to store data online and is used to backup.....now i selected 65gb of data and it started to back up the data...now as it process size of the file started to increase and ultimately it returned 60gb.....so as itz a large file how can we store it on cds or dvds..some one is talking about using cds and dvds.....it can be on stored on some external harddrive..............SO BASICALLY WHAT IS THE USE OF DOIN ALL THAT........imean we can individually store data on cds and dvds using burners.............
2)i heard of the software called true image....now i heard that it actually makes an image of whole sys including OS..and with less size than original.......letz say this my hdd is 80gb and i used true image to make an image of hdd...so it resulted in a file of size less than that of original like 4gb or 5gb or something
....is it possible to do like that coz itz benificial as it is easily storable on dvd's and other media so when hard disk crashes u can use that dvd and click on thje image to retrieve that data
so itz possible........is there any software(freeware) which can do that.
2 AnswersSoftware1 decade agoneed help c programmers help me!!!?
i need help in this
write a program to find the sum of even digit and odd digit between 1-100
multiply wthout using * operator for the given no
write a program to print the fibonacci series
0 1 1 2 3 5 8 13
10 AnswersProgramming & Design1 decade agoC programmers out there help me!!!!!!?
1)write a program in C to print digits like
1
123
4567
2)to print digits like
1
11
111
1111
11111
3)to print stars
*
**
***
****
*****
the out put should come like mentioned above i'll be very thankfull i'm in DIRE need of these programs 10points -five stars for the best answer
plz help me out
7 AnswersProgramming & Design1 decade agocan i make a high quality video from a bad print?
actually can i make high quality video from a bad video low resolution and cam version files and low bit rate files .some rippers do it i'm unable to understand how can they do it just like that like dark knight DVD rip it was originally cam film but they ripped it into hight quality video with 16:9 that is AxxO releases
1 AnswerSoftware1 decade agohow can i write "||" this symbol in turbo c++??????
4 AnswersProgramming & Design1 decade agoABOUT C..........let us c the program i have written i'll explain what my q is.?
i have written this program with no errors now I WANT TO USE IF FUNCTION OR ANY THING SUCH THAT I GET THE OUTPUT "FAIL" IF THE PERSON IS FAILING THAT IS <35 MARKS IN ANY OF THESE SUBJECTS AT THE END suppose he got 15 marks in hindi and passing in other subjects i should get fail at the end
main()
{
int ,hindi,english,maths,science,social,percentage,total,average,good;
printf("enter the marks in hindi: ");
scanf("%d",&hindi);
printf("enter the marks in english: ");
scanf("%d",&english);
printf("enter the marks in maths: ");
scanf("%d",&maths);
printf("enter the marks in science: ");
scanf("%d",&science);
printf("enter the marks in social: ");
scanf("%d",&social);
total=(telugu+hindi+english+maths+science+social);
percentage=total/6;
printf("the percentage is %d\n",percentage);
if(percentage<50)
printf("average\n");
else if(percentage>70)
printf("good\n");
printf(" a prrrrrrrrroooooogggggggrrrrrrrrraaaaaaaammmmmmmm written by sanjay\n");
getch();
}
3 AnswersProgramming & Design1 decade agolittle doubt in C ?progmmers out there help me?
i have written a program in c to find out the percentage well every thing gone wright but i want to add IF function i want to get the output as good if the percentage is above 70
and bad if the percentage is below 50
herez the program
main()
{
int envi science,hindi,english,maths,science,social,percentage,average,good;
printf("enter the marks in envi science: ");
scanf("%d",&envi science);
printf("enter the marks in hindi: ");
scanf("%d",&hindi);
printf("enter the marks in english: ");
scanf("%d",&english);
printf("enter the marks in maths: ");
scanf("%d",&maths);
printf("enter the marks in science: ");
scanf("%d",&science);
printf("enter the marks in social: ");
scanf("%d",&social);
percentage=(envi science+hindi+english+maths+science+social)/6;
printf("the percentage is %d\n",percentage);
if("percentage<50",&average);
if("percentage>70",&good);
printf(" a prrrrrrrrroooooogggggggrrrrrrrrraaaaaaaammmmmmmm written by sanjay\n");
getch();
}
HOW CAN I MODIFY THIS PROGRAM TO GET THAT TYPE OF OUTPUT
3 AnswersProgramming & Design1 decade ago"EXPRESSION IN FUNCTION MAIN"a bug thtz making me to go mad?
see iam a new to C language but not that foolish who can't even copy from the book, every time i tried to run a program written by me turbo c++ gives me an error "EXPRESSION IN FUNCTION MAIN".ven when i copy a program from the book it gives me the same error
herz the program
main()
{
int radius;
float area;
float pi=3.14;
printf("enter the value of radius",%d);
scanf("%d",&radius);
area=pi*radius*radius;
printf("area of circle is \f%",area);
}
this a pure copy from the book but when i tried to run it it gave me that error. folks plz helpme
4 AnswersProgramming & Design1 decade agoSee i want 2 buy memory card from ebay & it has a warranty..........?
Suppose i would have any problems in The future then how 2 redeem dat warranty 2 whom i shoúld contact
3 AnswersOther - Internet1 decade agois there any technique to detect whether i pc is on a proxy server or behiind an ISP?
my connection is a cable connection directly connected.when i ask the person he said he didn't vknow cuz he is a stupid he never heard of the name proxy so iam curious to know about that plz help me
1 AnswerOther - Internet1 decade agowhat is meant by ping?
when u type ping and the ip adress a black window will be opened with some message on it . i didn't understand that it was some rhing like TTL<128 is that number is the speed of the connectin iam using?
6 AnswersSoftware1 decade agoname some of the best artist artist like akon ?
give me the names of the best artist artists and their best songs
3 AnswersOther - Internet1 decade agowhat is meant by bidding in ebay?
i saw an item which bid (idont know what bid means)RS 1 thatz 0.722$ something in the next column it says that u have 2 place ur bid.what this bid means.item really costs 0.7222$
5 AnswersOther - Internet1 decade agowhat about ebay is it real or fake?
iam a newbee so plz tell me if we buy an item is it sure that itz gonna reach us .tell me in detail about ebay
11 AnswersOther - Internet1 decade agois there any risk in using private trackers?
i just googled this word and i gt alist of sites from where i got info about the intrusion of FBI and RIAA and bla bla.written that thy are sarching for downloaders and uploaders and site owners is it real that police r really on to it
1 AnswerOther - Internet1 decade ago