Friday, June 8, 2012

WRITE A PROGRAM TO FIND THE SUM OF DIGITS OF A GIVEN NUMBER.?


♣♣ WRITE A PROGRAM TO FIND THE SUM OF DIGITS OF A GIVEN NUMBER. ♣♣



import java.io.*;
class pro3
{
            public static void main(String args[]) throws IOException
            {
            int num,rem,sum=0;
            InputStreamReader a=new InputStreamReader(System.in);
            BufferedReader b=new BufferedReader(a);
            System.out.print("Enter any numeric number : ");
            num=Integer.parseInt(b.readLine());
                        while(num!=0)
                        {
                        rem=num%10;
                        sum=sum+rem;
                        num=num/10;
                        }
            System.out.print("Sum of Number= "+ sum);
            }
}


OUTPUT :-

            Enter any numeric  number : 4652
            Sum of Number = 17

Write a program to reverse the string.?


♣♣♣ WRITE A PROGRAM TO REVERSE THE STRING. ♣♣♣


import java.io.*;
class pro2
{
            public static void main(String args[]) throws IOException
            {
            String s1;
            InputStreamReader a=new InputStreamReader(System.in);
            BufferedReader b=new BufferedReader(a);
            System.out.print("Enter any string : ");
            s1=b.readLine();
            int cnt=s1.length();
            System.out.println("Real String = "+s1);
            System.out.print("Reverse String= ");
            while(cnt>0)
            {
                        System.out.print(s1.charAt(cnt-1));
                          cnt--;
              }
              System.out.println();
            }
}


OUTPUT :-

            Enter any string : KAPIL
            Real String = KAPIL
            Reverse String = LIPAK

Write a program to check whether two strings are equal or not. ?


♣♣♣ WRITE A PROGRAM TO CHECK WHETHER TWO STRINGS ARE EQUAL OR    
NOT. ♣♣♣                            

import java.io.*;
class pro1
{
            public static void main(String args[]) throws IOException
            {
            String s1,s2;
            InputStreamReader a=new InputStreamReader(System.in);
            BufferedReader b=new BufferedReader(a);
            System.out.print("Enter First string : ");
            s1=b.readLine();
            System.out.print("Enter Second string : ");
            s2=b.readLine();
                        if(s1.equals(s2))
                        System.out.print("Equal");
                        else
                        System.out.print("Not Equal");
            }
}



OUTPUT :-

            Enter first string : My Name is Kapil
            Enter Second string : My  Name  is Kamia
            Not Equal


            Enter first string : My Name is Kapil
            Enter Second string : My Name is Kapil
            Equal

Thursday, June 7, 2012

Soon Coming With Asp.Net MVC & Cloud Computing

Hello  Friends,

                      We  are  coming  with  new  technology  area  of Microsoft  Like  MVC 4 and Cloud  Computing.We  have  very  easy  tutorials to  learn  MVC  and  Cloud  Computing.  Hope  You  ll  be  enjoying with  new  technologies.

Regards
Logic  Cafe Team

About US

Hi We are a LogicCafe Team. Our Team always trying to make better solutions for your queries, in our team we are 10 IT Professionals from different-2 areas of technology like JAVA,ORACLE,PHP,.NET,SQL,C,C++. So please don't be shy to ask any question our Team have full dedication to solve your Problems with in 24 Hours. Share US ON FB https://www.facebook.com/pages/Logiccafe/106708852753742

Wednesday, June 6, 2012

Part Time Earning Tips





Hi Folks, here comes the most Real n easy way to Earn unlimited that too just by spending few minutes a day. The time has gone when people were fooled just by showing some lucrative fake incomes by many chain businesses so lets not be a part of sheep walk n lets explore Welcome To ‘NeoBux.com’ & be a part of Neobux family that can multiply your earnings just by viewing advertisements Here I m displaying some of the most attractive features of NeoBux.com that will let u earn 100 $ just in few days and can even help your Business grow as you will. Let’s learn about how u can make minimum money in a month.
Minimum Earnings

 Serial No.        Title                               Amount/month                               Amount/month
  1.            By viewing adds                          10$                                                120$
  2.            By referrals (per referral)             4$                                                  48$
  3.            By Neo points/coins                    5$                                                   60$
  4.            Add Price                                    Randomly chosen                   Randomly chosen
  5             Total                                            20$                                                208$
 So lets give a spark to your Dreamz Guyz !
Click here to be a part of Neo family  and  Register.

Part Time Jobs


 




<script type="text/javascript"><!--
google_ad_client = "ca-pub-9466935848824172";
/* Post Adds */
google_ad_slot = "2071655587";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>



Features:

As a member you can earn simply by viewing all the advertisements they display.
As an Advertiser You can advertise your Business to help increase your sales and let ur business be
viewed by number of viewers.
NeoBux achievements includes a number of “18,798,310 members”
“19,387,936,909” Advertisers, and a lucrative amount of $75,125,053 have been paid to the Neo
members till date that too with in period of just 4 years.
NeoBux is the only platform that offers number of benefits for its members some of them are:

- Effortless income
- Earn from home
- Guaranteed ads daily
- Detailed statistics
- Upgrade opportunities
- A dedicated community
- AdPrize + Offers
- Enhanced management
- Millions of potential clients
- Secure and stable environment
- Professional support
- Customer oriented business

                                              Happy  Earnings :)
                                                                                                                   Regards
                                                                                                             Logic Cafe Team