Earn by twitter on twivert

Sign up for PayPal and start accepting credit card payments instantly.

Thursday, April 22, 2010

WAP to print even and odd number b/w 1 to 100


/*WAP to print even and odd number b/w 1 to 100*/
/*Save File as : eh.java*/

import java.lang.*;

class evenodd
{
 int i,flag;
void calculate()
   {
    for(i=1;i<=10;i++)
      
       if(i%2==0)
        {
         System.out.println("No. is Even " + i);
        
        }
       else
       if(i%2!=0)
        System.out.println("No. is ODD " + i);
   }
}
class eh
{
 public static void main(String arg[])
   {
    evenodd e1=new evenodd();
    e1.calculate();
   }
}

convert seconds into hours,minutes & remaning seconds


/*convert seconds into hours,minutes & remaning seconds */

#include<stdio.h>
#include<conio.h>
void main()
{
int a,hours,minutes,rh,rm,sec;
clrscr();
printf("enter seconds\n");
scanf("%d",&a);
hours=a/3600;
rh=a%3600;
minutes=rh/60;
rm=rh%60;
sec=rm;
printf("hours=%d",hours);
printf("\nminutes=%d",minutes);
printf("\nsec=%d",sec);

getch();
}

ADS

How to earn online

How to earn online:
Step - 1 :
signup for PayPal, to recieve your online earning
click here:
https://www.paypal.com/in/mrb/pal=CZ7224TZBMCBL
step - 2 : Singup these 4 sites & earn & enjoy! Read site to know how to earn.
1. trekpay
Earn up to $0.02 (2 cents) per click.
http://www.trekpay.com/?ref=34690
2. neobux
Earn up to $0.02 (2 cents) per click.
Click here:
http://www.neobux.com/?r=Moneyearner786

AddMe

Bookmark and Share