Search Anything......

Run c ,c++ in full screen in windows 7

Procedure 2 Run c ,c++ in full screen in windows 7 Download DOSBox frome here....... click me to Download DOSBox Install and run the DOSBox. Now in a DOSBox command prompt type “mount c: c:/tc” and press enter. (widout quote) Assumed that Turbo C or C++ is installed in C drive and TC folders located at C:\TC You may get a message that 'Drive C is mounted as local directory C:/TC\' Change the directory to C/BIN/tc.exe. then press (alt+enter key) ....enjoy........... comment if it is not working..........

HIDDEN PROGRAM IN WINDOWS XP

Programs :

1. Private Character Editor :

Used for editing fonts,etc.
** start>>Run
** Now, type eudcedit

2. Dr. Watson :

This an inbuilt windows repairing software !
** start>>Run
** Now, type drwtsn32

3. Media Player 5.1 :

Even if you upgrade your Media Player, you can still access your old player in case the new one fails !!!
** start>>Run
** Now, type mplay32

4. iExpress :

Used to create SetupsYou can create your own installers !
** start>>Run
** Now, type iexpress

CODES FOR NOKIA PHONES ONLY...

Codes :
1) *#06# For checking IMEI(international Mobile Equipment Identity)
2) *#7780# Reset to factory settings
3) *#0000# To view software version
4) *#2820# Bluetooth device address
5) *#746025625# Sim clock allowed status
6) #pw+1234567890+1# Shows if ur sim as any restrictions

Funny Quotes Collection


Funny Quotes Collection

Here is the collection of fun quotes.......:)...



“When a woman closes her eyes, she sees the person she love the most, and when a man does
that..a slide show begins.”

Only kids are excited about 11.11.11 or 12.12.12. For me nothing can be more interesting then 36:24:36
When someone tries to impress you, it means they are already impressed by you!

Height of attitude: I am jealous of my parents. because I will never have a kid as smart as theirs!

If you treat someone like a celebrity, don’t be surprised if they treat you like a fan!

Steve Jobs has reached the gates of Heaven. The Apsaras will now be called iTems.

Money is not every thing in life. There is Mastercard and Visa also!

Every man needs a beautiful wife, caring wife, loving wife, sexy wife, adjusting wife and cooperative wife..but its sad that law allows only one wife.

Never think that your girlfriend has sent you a sweet and romantic message. Always think about who has sent her such a romantic message.
A banker is a fellow who lends you his umbrella when the sun is shining, but wants it back the moment it begins to rain.
Visitors are always pleasure. Some when they arrive and others when they leave.

The quickest way to double your money is to fold it in half and put it back in your pocket.

Who says nothing is impossible? I have been doing nothing for years.

Twine Engine Aircraft: When one engine fails the other one takes it to the crash site!

There are more and more things which are more important than money. But we need money to buy them.

All are happy in one way that everyone is unhappy in different ways.

To avoid heart attacks give away your heart to someone you dislike.

I like men who have a future and woman who have a past.

What do you call a group of people where two of them are thinking of sex and all the others are thinking of food? “A wedding.”
The most irritating moment, when you name a file “ghjkl” and your computer says the filename “ghjkl” 
already exists!
Thousand Words of Teacher Does Not Hurt.. But the silence of a friend in the examination hall brings tears into the eyes!
When girls kiss and hug each other… It’s Sister
love… When guys do it… GAY!

Its easy to find a handsome boy without a girlfriend but its difficult to find a beautiful girl withou a boyfriend.

First bench students solve any problems but last
bench students can face any problems!”

“To be happy with a man you must understand
him a lot and love him a little. To be happy with
a woman you must love her a lot and not try to
understand her at all.”

“I only take a drink on two occasions: when I’m
thirsty and when I’m not.”




Getting Started with C or C++

learn online web design

c program with soltutions....


Q1.WAP that prints the first digit of an integer read from the keyboard. Use function for the implementation.

#include<stdio.h>
#include<conio.h>
void print(int no);
void main()
{
                int no;
                clrscr();
                printf("Enter the no : ");
                scanf("%d",&no);
                print(no);
                getch();
}
void print(int no)
{
                int i,m=no;
                for(i=1;i<=no;i++)
                {
                                no/=10;
                }
                printf("the first digit of %d is : %d",m,no);
}

OUTPUT

Enter the no : 32650
the first digit of 32650 is : 3






Q2. WAP that reads long integer and print them with leading zero’s in form 123,456 with comma (,) at 3rd and 4th digit.

#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
                long no,a;
                clrscr();
                printf("Enter any  number between 1000 to 65000 \n");
                scanf("%ld",&no);
                if(no>=1000 && no <=999999)
                {
                                a=no%1000;
                                no=no/1000;
                                printf("No is %ld,%ld",no,a);
                }
                else
                                printf("Number not valid \nRestart the application\nPress ant ley to Exit\n");
                getch();
}

OUTPUT
Enter any number between 1000 to 999999
123456
No is 123,456



















Q3. WAP to check whether the blood donor is eligible for donating blood .The conditions are lay down below.
Age should be greater than 18 yrs.
Weight should be more than 45 kg.
Implement this using if statement and user defined functions.

#include<stdio.h>
#include<conio.h>
int eligible(int age,int weight);
void main()
{
                int age,weight;
                clrscr();
                gotoxy(25,2);
                printf("BLOOD DONATION CAMP");
                gotoxy(2,4);
                printf("RULES\n -----");
                gotoxy(2,7);
                printf("1. Age should be greater than 18 yrs.\n");
                printf(" 2. Weight should be greater than 45 kg.\n");
                printf("\nEnter the age between 18 to 55 yrs \n");
                scanf("%d",&age);
                if(age>=18 && age<=55)
                {
                                printf("Enter the weight greater than 45 kg \n");
                                scanf("%d",&weight);
                                if(eligible(age,weight)==1)
                                {
                                                printf("You are eligible for Donating Blood.\n");
                                                printf("Thank You for Donating Blood\n");
                                }
                                else
                                {
                                                printf("You are not eligible fo Donating Blooad.\n");
                                }
                }
                else
                                printf("You are not eligible fo Donating Blooad.\n");
                getch();
}
int eligible(int age,int weight)
{
                if(age>=18 && age <=55 && weight>45)
                                return 1;
                else
                                return 0;
}
OUTPUT


                        BLOOD DONATION CAMP

 RULES
 -----

 1. Age should be greater than 18 yrs.
 2. Weight should be greater than 45 kg.

Enter the age between 18 to 55 yrs
20
Enter the weight greater than 45 kg
55
You are eligible for Donating Blood.
Thank You for Donating Blood










Q4. WAP that can read values up to 6 digits. Print the output in the form of Indian Rupee (123456 = 1 Lakhs 23 thousand 4 hundred 23).

#include<stdio.h>
#include<conio.h>
void main()
{
                long int rupee,digit;
                clrscr();
                printf("Enter Money between 1 to 999999 \n");
                scanf("%ld",&rupee);
                if(rupee >= 1 && rupee <=999999)
                {
                                printf("Money in Indian format is : ");
                                if(rupee >=100000 && rupee <=999999)
                                {
                                                digit=rupee/100000;
                                                rupee%=100000;
                                                printf("%d Lakh ",digit);
                                }
                                if(rupee >=1000 && rupee <=99999)
                                {
                                                digit=rupee/1000;
                                                rupee%=1000;
                                                printf("%d Thousand ",digit);
                                }
                                if(rupee >=100 && rupee <= 999)
                                {
                                                digit=rupee/100;
                                                rupee%=100;
                                                printf("%d Hundred ",digit);
                                }
                                if(rupee >= 1 && rupee <=99 )
                                {
                                                printf("%d",rupee);
                                }
                }
                else
                                printf("Money is out of range ");
                getch();
}

OUTPUT

Enter Money between 1 to 999999
123456
Money in Indian format is : 1 Lakh 23 Thousand 4 Hundred 56


Q5.  WAP that can extract two least significant digits of an integer.

#include<stdio.h>
#include<conio.h>
void main()
{
       long int no,lsb1,lsb2,a;
       clrscr();
       printf("Enter no max of 7 digits greater than 0 \n");
       scanf("%ld",&no);
       a=no;
       if(no >=1 && no <=9999999)
       {
                                lsb1= no % 10;
                                no /= 10;
                                lsb2 = no %10 ;
                                printf("\nThe least two significant digits of %ld are %ld and %ld",a,lsb2,lsb1);
       }
       else
                                printf("Entered number is out of range\n");
       getch();
}

OUTPUT

Enter no max of 7 digits greater than 0
1234567

The least two significant digits of 1234567 are 6 and 7










Q6. WAP that reads two integers and print the reminder and quotient.

#include<stdio.h>
#include<conio.h>
void main()
{
            int no1 ,no2,rem,que;
            clrscr();
            printf("Enter two no separated by space \n");
            scanf("%d %d",&no1,&no2);
            if(no2 != 0)
            {
                        rem=no1 % no2;
                        que = no1 / no2;
                        printf("%d / %d Quotient = %d , Reminder = %d",no1,no2,que,rem);
            }
            else
                        printf("Divisible by zero is not possible ");
            getch();
}

OUTPUT

Enter two no separated by space
12 3
12 / 3 Quotient = 4 , Reminder = 0




















Q7. WAP to pass a user defined function to another function.

#include<stdio.h>
#include<conio.h>
void print(int a,int b,int c);
int sum(int a,int b);
void main()
{
                int a,b;
                clrscr();
                printf("Enter Two umbers \n");
                scanf("%d %d",&a,&b);
                print(a,b,sum(a,b));
                getch();
}
void print(int a,int b,int c)
{
                printf("%d + %d = %d",a,b,c);
}
int sum(int a,int b)
{
                return (a+b);
}

OUTPUT
Enter Two umbers
1
2
1 + 2 = 3



















Q8. WAP that count no b/w 1 to 100 and print that no. which are not divisible by 2, 3 and 5.

#include<stdio.h>
#include<conio.h>
void main()
{
                int i,c=0;
                clrscr();
                printf("Numbers that are not divisible by 2, 3, 5 are :\n\n");
                for(i=1;i<=100;i++)
                {
                                if(i % 2!=0 && i % 3 != 0 && i % 5 != 0)
                                {
                                                if(c % 5 == 0)
                                                {
                                                                printf("\n\n");
                                                }
                                                else
                                                {
                                                                printf("%d  ",i);
                                                }
                                                c++;
                                }
                }
                getch();
}



OUTPUT

Numbers that are not divisible by 2, 3, 5 are :


7  11  13  17

23  29  31  37

43  47  49  53

61  67  71  73

79  83  89  91





Q9. Create an infinite for loop .Check each value of for loop. If the value is even display it otherwise continues printing even no b/w 1 to 21. Use break statement to terminate the loop.

#include<stdio.h>
#include<conio.h>
void main()
{
                int i=1;
                clrscr();
                printf("Even no between 1 to 21 is :\n\n");
                for(;;)
                {
                                if(i % 2 == 0)
                                {
                                                if(i % 10 ==0)
                                                                printf("\n");
                                                printf("%d ",i);
                                }
                                if(i==21)
                                                break;
                                i++;
                }
                getch();
}

OUTPUT


Even no between 1 to 21 is :
2 4 6 8
10 12 14 16 18
20









Q10. WAP to display 5 numbers in increasing and decreasing order using infinite for loop. The loop must terminate when the number is sorted.

#include<stdio.h>
#include<conio.h>
void main()
{
                int no1,no2,no3,no4,no5,sum,i;
                clrscr();
                printf("Enter 5 no \n");
                scanf("%d%d%d%d%d",&no1,&no2,&no3,&no4,&no5);
                sum=no1+no2+no3+no4+no5;
                printf("\nDecreasing order \n\n");
                for(i=sum;;i--)
                {
                                if(no1==i)
                                                printf("%d ",i);
                                if(no2==i)
                                                printf("%d ",i);
                                if(no3==i)
                                                printf("%d ",i);
                                if(no4==i)
                                                printf("%d ",i);
                                if(no5==i)
                                                printf("%d ",i);
                                if(i==0)
                                                break;
                }
                printf("\n\nIncreasing order\n\n");
                for(i=0;;i++)
                {
                                if(no1==i)
                                                printf("%d ",i);
                                if(no2==i)
                                                printf("%d ",i);
                                if(no3==i)
                                                printf("%d ",i);
                                if(no4==i)
                                                printf("%d ",i);
                                if(no5==i)
                                                printf("%d ",i);
                                if(i==sum)
                                                break;
                }
                getch();
}

OUTPUT

Enter 5 no
1
5
6
4
5
Decreasing order

6 5 5 4 1

Increasing order

1 4 5 5 6











Q11. WAP to generate triangular no.


Q12. WAP to detect the largest no out of 5 no and display it.

#include<stdio.h>
#include<conio.h>
void main()
{
            int no1,no2,no3,no4,no5,sum,i;
            clrscr();
            printf("Enter 5 no \n");
            scanf("%d%d%d%d%d",&no1,&no2,&no3,&no4,&no5);
            sum=no1+no2+no3+no4+no5;
            printf("\nLargest no : ");
            for(i=sum;;i--)
            {
                        if(no1==i || no2==i || no3==i ||no4==i ||no5==i)
                        {
                                    printf("%d",i);
                                    break;
                        }
            }
            getch();
}


OUTPUT

Enter 5 no
1
335
32 32
2

Largest no : 335












Q13. WAP to detect the least no out of 5 no and display it.

#include<stdio.h>
#include<conio.h>
void main()
{
            int no1,no2,no3,no4,no5,sum,i;
            clrscr();
            printf("Enter 5 no \n");
            scanf("%d%d%d%d%d",&no1,&no2,&no3,&no4,&no5);
            sum=no1+no2+no3+no4+no5;
            printf("\nLeast no : ");
            for(i=0;;i++)
            {
                        if(no1==i || no2==i || no3==i ||no4==i ||no5==i)
                        {
                                    printf("%d",i);
                                    break;
                        }
            }
            getch();
}


OUTPUT

Enter 5 no
1
33
32 32
2

Leastno : 1






Q14. WAP to print the 3 D matrix of order 3X3X3.

#include<stdio.h>
#include<conio.h>
void main()
{
            int mat[3][3][3],i,j,k;
            clrscr();
            printf("Enter Elements of Matrix \n");
            for(i=0;i<3;i++)
            {
                        for(j=0;j<3;j++)
                        {
                                    for(k=0;k<3;k++)
                                    {
                                                scanf("%d",&mat[i][j][k]);
                                    }
                                    printf("\n");
                        }
                        printf("\n");
            }
            printf("\n The 3D Matrix is :\n\n");
            for(i=0;i<3;i++)
            {
                        for(j=0;j<3;j++)
                        {
                                    for(k=0;k<3;k++)
                                    {
                                                printf("%d ",mat[i][j][k]);
                                    }
                                    printf("\n");
                        }
                        printf("\n");
            }
            gertch();
}



OUTPUT

Enter Elements of Matrix
1 2 3

4 5 6

7 8 9


9 8 7

6 5 4

3 2 1


1 2 3

4 5 6

7 8 9



 The 3D Matrix is :

1 2 3
4 5 6
7 8 9

9 8 7
6 5 4
3 2 1

1 2 3
4 5 6
7 8 9









Q15. WAP to enter a statement in a combination of Capital, Small, Symbols and Numbers. Carry out separation of Capital, Small, Symbol, Number by using ASCII values.

#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
                char *str,*str2;
                int a,b,c,d,i;
                a=b=c=d=i=0;
                clrscr();
                printf("\tEnter the statement \n\t");
                gets(str);
                for(i=0;i<=strlen(str)-1;i++)
                {
                                if((str[i]>=0 && str[i]<=47) || (str[i] >=58 && str[i]<=64) ||(str[i]>=91 && str[i]<=96))
                                {
                                                a++;
                                }

                                if(str[i]>=48 && str[i]<=57)
                                {
                                                b++;
                                }

                                if(str[i]>=65 && str[i]<=90)
                                {
                                                c++;
                                }

                                if(str[i]>=97 && str[i]<=122)
                                {
                                                d++;
                                }
                }
                printf("\nCapital = %d\nSmall   = %d\nSymbols = %d\nNumber  = %d \n\t",c,d,a,b);
                getch();
}
OUTPUT

        Enter the statement
        Gaurav singh &^% 1235

Capital     = 1
Small       = 10
Symbols  = 6
Number  = 4
Q16. WAP print all the co prime numbers b/w 1 - 100.



Q17. WAP which ask user to enter matrix up to max of 10 X 10. Display the matrix and its transpose. Rows and columns are entered by user.

#include<stdio.h>
#include<conio.h>
#define MAX 10
void main()
{
                int mat[MAX][MAX],i,j,k,row,col;
                clrscr();
                printf("\nEnter Rows : ");
                scanf("%d",&row);
                printf("\nEnter Columns : ");
                scanf("%d",&col);
                printf("\n\nEnter Elements of Matrix \n");
                if(row>=1 && row <=MAX && col >=1 &&col <=MAX)
                {
                for(i=0;i<row;i++)
                {
                                for(j=0;j<col;j++)
                                {
                                                scanf("%d",&mat[i][j]);
                                }
                                printf("\n");
                }
                printf("\nMatrix is :\n\n");
                for(i=0;i<row;i++)
                {
                                for(j=0;j<col;j++)
                                {
                                                printf("%d ",mat[i][j]);

                                }
                                printf("\n\n");
                }
                printf("transpose of matrix is :\n\n");
                for(i=0;i<col;i++)
                {
                                for(j=0;j<row;j++)
                                {
                                                printf("%d ",mat[j][i]);

                                }
                                printf("\n\n");
                }
                }
                else
                                printf("Out of Range\nRestart the Application");
                getch();
}

OUTPUT

Enter Rows : 3

Enter Columns : 3

Enter Elements of Matrix
1 2 3
4 5 6
7 8 9

Matrix is :

1 2 3

4 5 6

7 8 9

transpose of matrix is :

1 4 7

2 5 8
3 6 9













Labels

...etc) in Ur Computer 2 250+tech book online ACCESS POINT OF ALL INDIAN MOBILE NETWORK ... AIRCEL FREE DIALER TUNE FOR 1 MONTH AIRTEL ALL ABOUT SPYWARE ALL PC GAME SERIAL KEY antivirus Boot WinXP Fast Bsnl C LANGUAGE KEYWORD Chat With Command Prompt Clean out the prefetch folder computer cool windows 7 trick Create Your Own Logon Message d: DELETE THE MY DOCUMENTS FOLDER OF UR ENEMY Dialog box shortcut Disable CD Burning Disable The Send Error Report disk cleanup........ DIWALI SMS COLLECTION e: enjoy all ur cell phones softwares into ur pc. FIND IP ADDERESS OF UR INTERNET CONNECTION Finding IP address in Yahoo Mail For pc to boost faster than it is nowww......... FREE Full Information about ur computer Get the keyboard on your desktop screen HACKING hellotune HELPFULL TRICKS AND TIPS FOR WINDOWS7 Hidden unknown fact in MICROSOFT WORD How to create a shutdown shortcut. How to find the IP address of the sender in Gmail How to find the IP address of the sender in Hotmail How to Hide the drives(c: HOW TO REMOVE WINDOWS XP MESSENGER How to Restart Windows without Restarting your PC idea If you forget your cell phone password IMPORTANT QUESTION FOR XP SP2. INCREASE RAM INCREASE UR BANDWIDTH Install Xp From Dos Internet explorer Keeping the Windows XP Core in the RAM LINUX SECRET Lock lose mobile finder Make the folder INVISIBLE without hiding MAKE YOUR FOLDER PRIVATE Make your wndows Xp GENUINE Mozilla firefox Natural keyboard shortcut nokia Nokia Secret code notepad Orkut songs scrap Password RECOVERY Console PDF Trick... PROXY PUNJABI SMS COLLECTION Quick Shutdown for XP Rapidshare trick Remove SHORTCUT link from the desktop folder Remove shutdown button Remove Thumb.db file Rename the Recycle Bin RUN COMMANDS SERIAL NUMBER OF ANY SOFTWARE WEBSITES Short cut for shutdown and Restart on desktop SMS COLLECTION SOME FUNNY COMPUTER TRICKS SONY StarWars Movie in Command Prompt SUN TV DTH TATA DOCOMO To Create Folder " CON " to Microsoft Trick to Show ur name after time in taskbar Try to LOCK ur folder wit out Software method Turn Off System Restore to Save Space UNLIMITED RAPIDSHARE DOWNLOAD Use of PrintScreen for some fun VERY FUNNY U MUST CHECK IT OUT...... Very Slow Boot When Networking Virus VIRUS MAKE IN C LANGUAGE vodapone Way to get XP product CODE from CD Write VIRUS to computer in 5 minutes XP XP REPAIR INSTALATION PROCESS Yahoo Chat Commands You can put shortcuts for shortcuts

Popular Posts