No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
how to complile and execute a c pro in editplus |
|
how can i check a given string to form a palindrome or not for(i=0;i<str.length();i++) { if(str.charAt(i)==str1.charAt(i) } } |
|
i want to print words in reverse. i could print characters in reverse but not words for(int i=arr.length;i>0;i--) printf(arr[i]); |
|
i can write a palindrome pro but i dont to write using recursive function can any body help and to check whether a palindrome can fotmed from a given string? j=0,k=0; while((j<strlen(str)-1)/2) { if(str[j]!=str[strlen(str)-1-j]) { k=1; break; } j++; } if(k==0) printf("palindrome") else printf(not a palindrome"); |
|
how can write a orogram to check whether palindromw is posiible from a given stirng for(i=0;i<strlen(a);i++0 { if(a[[i]==b[i]) printf(a[i]; ) } |
|
1. Write a java program using following details. You are free to make all necessary assumptions. All the assumptions made should be documented. There are four scientists who need to be ordered according to their smartness (smartest to least smart). There is a text file “smart.txt” in the following format: … |
|
1.WHAT IS THEDIFFERNCE BETWEEN LOCAL INNER CLASS AND NON LOCAL INNER CLASS? [B]2.Is there any tool in java that can create reports ? 3.?What is meant by a resource leak[/B] ? |
|
i want to find the lcm ,cant it be found without using gcd? class Gcd { int a,b; Gcd(int a,int b ) { this.b=b; this.a=a; } int gcd( int a,int b) { while(a!=b) { if(a>b) a=a-b; else b=b-a; return a; } } int lcm() { int l; if(a<b) l=(a*b)/gcd(a,b); else … |
|
i want to find the second smallest number ib array but it is displaying second highest number int max=0,second=0; if(a[0]>a[1]) { max=a[0]; second=a[1]; } else { max=a[1]; second=a[0]; } for( i=2;i<n;i++) { if(a[i]>=max) { second=max; max=a[i]; } else if(a[i]>second) second=a[i]; } System.out.println("the second smallest nubmer is"+second); |
|
ehat is the differencde between error,checked exception and unchecked exception?when occurs at what time?compile time or runtime?which of them can be handled and what not handled?example? |