Encouragement from a friend after trouble
is as welcome as sunshine a storm
there is some good c ,java, sql and vb6 programs,Windows tricks, sms shorthand etc
Saturday, January 23, 2010
Encouragement from a friend
WAP TO PRINT VALUE OF MULTIPLE DATA TYPES
/*WAP TO PRINT VALUE OF MULTIPLE DATA TYPES*/
#include<stdio.h>
#include<conio.h>
void main ()
{
int a=10;
float d=40.50;
char ch='A';
double dbl=78.9786;
long lng=7897711;
char nm [10]="Welcome";
clrscr ();
printf ("\nInteger value is %d",a);
printf ("\nFloat value is %.2f",d);
printf ("\nCharacter value is %c",ch);
printf ("\nDouble value is %.4lf",dbl);
printf ("\nLong value is %ld",lng);
printf ("\nString value is %s",nm);
getch ();
}
WAP TO PRINT SERIES FROM 1 TO 10 AND BREAK ON 5
/*WAP TO PRINT SERIES FROM 1 TO 5 AND BREAK ON 3*/
#include
#include
void main ()
{
int a;
clrscr ();
for (a=1;a<=5;a++)
{
if (a==3)
break;
printf ("%d\n",a);
}
getch ();
}
WAP to print ASCII code from 0 to 255
/*WAP to print ASCII code from 0 to 255*/
#include
#include
void main ()
{
int i=0,count=0;
clrscr ();
for(i=0;i<=255;i++){if (count>24)
{count=0;getch();}
else
{printf("%d=%c\n",i,i);
count++;}
}
getch ();
}
Subscribe to:
Posts (Atom)
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
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