Monday, April 29, 2013

C++ Program to Print Out 1-100 Using For Loop

The C++ Program is given below will print 1-100 when you will run it in Code Block or Turbo C.

#include<stdio.h>
void main()
{
int i;
for(i=1; i<=100; i++)
printf("%d",i);
}

C Programming, Print 1-100 by C++, C++ Programming

Tuesday, April 23, 2013

C++ Program to Define a Grade Depending on the Marks

Program to Define a Grade

This program is to define a Grade depending on the number given by the user.

00-32 = F Grade
33-40 = D Grade
41-50 = C Grade
52-59 = B Grade
60-69 = A- Grade
70-79 = A Grade
80-100 = A+ Grade

The Codes are given below for the program...

#include<stdio.h>
void main()
{
float num;
printf("Enter the Number You've Obtained: ");
scanf("%f",&num);
if(num>100||num<0)
{
printf("You have entered an invalid number, Enter a valid number!");
scanf("%f",&num);
}
else if(num>=80&&num<=100)
printf("You've obtained A+ Grade");
else if(num>=70&&num<80)
printf("You've obtained A Grade");
else if(num>=60&&num<70)
printf("You've obtained A- Grade");
else if(num>=50&&num<60)
printf("You've obtained B Grade");
else if(num>40&&num<50)
printf("You've obtained C Grade");
else if(num>=33&&num<=40)
printf("You've obtained D Grade");
else
printf("You've obtained F Grade");
}

Friday, April 12, 2013

Why Should You Make a Homepage in Your Blogger Blog


A lots of problems you will face if you don't make a Homepage in your blog or website. Otherwise you can make your blog more informative and helpful making a homepage like this site.
  1. All of the posts you will write will come in your Homepage in FIFO (First in First Out) system
  2. There is no chance to add Welcome Note in your Homepage because your present homepage is changeable, not fixed
  3. You may want to make a site with a fixed homepage where you will keep the information about your company or anything else. But you can't do it without making a homepage following my tutorial
  4. Homepage is a main window of a site where from the visitors will explore you site. So there should be more information and navigation links so that the visitors can find out your contents easily


Sunday, April 7, 2013

A Lots of Love SMS Are Available


~๑۞۩۞๑~

~♥۞ F!ND Y♥UR L♥VE ۞♥~

Man can not live alone. They need others support and love to survive. Man's life may become hell without love. So they try to find out someone special who will love him/her a lot, who will inspire him. He/she like to convince the expected one to get her/his love. Most often the boys propose the girls to love, to be the life partner. In most of the Love Stories a boy choose a girl then he convince her. 
There are many ways to express our words. Thousands of languages are available to express our words. Today Mobile Phone is a most used electronic device. The people mainly use Mobile Phone to call others. But sending Text Messages is also popular to the users. Most of the Messages (SMS) are new in this site.
Love is a very common feelings to all of us. We want to love others and we also wanted to be loved by others. But there are also some obstacles in this way. You may love anyone without any headache. But you can't be loved by him/her so easily. There will have must some problems. But Love SMS may help you in this case. Sometimes you may fail to express your words before him/herA lots of Love SMS are available for you in this site. I have written different types of Loves SMS depending on different situations.
Life is not full of Happiness, Joys and Enjoyment. Besides these there is also Sorrows, Sadness, Frustration and many more. So it's natural and very common that you may be Sad. But most often we become sad for others only because of misunderstanding. So in this site I have added a lots of Sad SMS so that you can express your words easily. So collect the right SMS for your beloved one and send that immediately.
We all are related with others. But sometimes we have to break up with them for misunderstanding! To continue a relationship we should compromise a lot. But everyone can't do it. Breaking up is really so painful. But in some cases there have few chances to rebuild the broken relation. So you may send Breakup SMS to your beloved one to make him/her understand. You may text to tell your untold words and to express your feelings properly. A lots of Breakups SMS are available in this site for different situations.
Everybody want to be celebrated or wished in his/her Birthday. So you should wish him/her in his/her Birthday. May be you are far away from him/her. May be there is no way to send any gift for him/her. But you may simply text him/her. A simple Birthday SMS will make him/her so happy. So you should send Happy Birthday Message to wish him/her Birthday. Remember the Girls like to be wished in their Birthday, Marriage Day or any other anniversary. So no Cards, no Gifts but just a special Birthday SMS for her! And you will get them in this site.
We have to do something to live in. We gain Success, Prosperity and Wealth according our deeds. But there is something called Luck. We have to believe in Luck. You may work hard for something. But you may net be succeeded for your Bad Luck. So we most often say to others "Have a nice day", "May God bless you", "Good Luck" etc. Your this types of wishes may inspire him/her a lot to do the work properly. Collect Good Luck SMS from this site and send them to your beloved one. Different types of Good Luck SMS for different situation are available in this site.
Man's life is not full of Happiness and Joys! There may have thousands of reasons to be sad. We all feel better when someone stay beside us during our bad times. May be you are not able to help him/her with money or physical labor! But you may console him/her by a few words. You may text him/her so that he/she can think that you are still beside him/her. He/she will must be happy to read your text.
The best relationship between two people is yet ♥Friendship! Friendship is really a valuable relation. We should keep it alive. Your friend may be far away from away. It may be impossible to meet him/her most often. It may be also impossible to phone him/her for your busyness or anything else! 
Man's life is really so difficult! So it is very simple and true that one can make fault. You may also make any fault. I think man's life is full of traffic. So how can one control his deeds properly all the time? Most of the people make fault unconsciously. So we should forgive others if they  confess their fault. If they say Sorry!!! You may also have to say sorry sometimes for your deeds. Sometimes it may be impossible to face him/her for the fault. He/she may not meet you again. There may have not any chance to talk with her/him even in the phone. So then you may send a SMS to her/him to make understand and to say sorry. So collect Sorry SMS from here are send to your beloved one to make her/him understand.
I think Smile is just like a Blooming Flower with the fragrance of thousands of flowers. Everyone like to see smiling face. The doctors say that smiling is necessary for Good Health. You friend or your beloved one may be angry on you! He/she may be so upset for something. Then just send him/her a Smile SMS. It will must make him/her happy and he/she will must happy. So collect Smile SMS from this site and send it to your Friends or to your Beloved One to make her/him smile.
I have added a lots of Jokes SMS. There also some Funny Stories in this section what will make you laugh! Man like to smile. Man like to be happy. So Jokes SMS can make one smile for a long time. Because when he will alone and will think about you then he/she will must remember the Jokes you had sent. So it will again make him/her smile. Thus your beloved one will be happy with your sent Jokes SMS.
The Girls like to be wished in various ceremonies. They await eagerly for the ensuing Birthday or Marriage Day to be wished! They planned a lot depending on a ceremony. Your Girlfriend or your wife will be must unsatisfied if you forget to wish her Birthday or if you forget yours Marriage Day! I have added a lots of Wish SMS like this. But not only Happy Birthday SMS, Marriage Day SMS but also there are Eid SMS, Puja SMS, Holy SMS, Christmas Day SMS and many more. So collect the Wish SMS and send it now to wish your favorite one.
Wishing Happy New Year is a very common tradition to all over the world. All the people expect the wishing for Happy New Year from his/her Friends, Family, Relatives and from Someone Special. But Happy New Year SMS's are very few against the world's population. There a very few Happy New Year SMS all over the world. Every year we are getting some new Happy New Year SMS but very few. However I have added some exclusive Happy New Year SMS in this site. Hope you will like them. The collection of the Happy New Year SMS is really exclusive. And most importantly most of them are new. So collect the new Happy New Year SMS from this site to make others surprised and pleased.
Who doesn't like to make fun! Fun is accepted by all aged people. We all like to be happy, we all like to smile, we all like to be joyful! So fun is liked by all types of people. The Girls mainly like the Funny Stories, Funny Poems and Funny SMS also. There are a lots of Funny SMS in this site. Just collect them and send to your favorite one to make happy to see smiling. I have added different types of Funny SMS in this site. So choose your expected one from the traffic. But I think all of my added Funny SMS will like you. Lets read them now.
We pass our life trough a lots of difficulties! Our life is full of difficulties. Every man has his/her own story. There is something must educative. Because one's life is a collection of experience. Because man have to face different situations in different stages of life. So he/she know how to face that. In this section you will found some SMS created depending on others practical knowledge in life. So I have named those Life SMS. You will also found some educative story in this section. So read them and learn from others life. You may send these SMS to others as advice.
Most of the Girls like the ♥♥♥Romantic ♥♥♥Guys!!! Guys also like the ♥Romantic ♥Girls! If you are in ♥Love or you want to propose someone then you have to be romantic. Girls like to read ♥Romantic SMS♥! Boys also like! So text him/her some Romantic Words to make him/her smile.
♥♥♥Propose SMS
Do you like someone? Do you like her/him so much? Do you want to propose now? Are you worried to select the words? Are you thinking that what should you say? What should you do? I am suggesting you to send a Propose SMS. There is a lots of Propose SMS in this section what will be so helpful for you want to propose someone! There are different types of Propose SMS depending on different situations. So select the right one for you and send him/her just now.

~♥ ๑۞๑ ♥~

Thursday, April 4, 2013

C Program to Define a Number Odd or Even


The C Program is given below is a program to define a number Odd or Even. When you will run this program then you will be asked to provide a number and you will see Enter the Number You Want to Check:  text on the screen. Then if you provide 5 and press Enter Key, you will get is an Odd Number in the result. And if you provide 8, you will get 8 is an Odd Number.
  1. #include<stdio.h>
  2. void main()
  3. {
  4. int a;
  5. printf("Enter the Number You Want to Check: ");
  6. scanf("%d",&a);
  7. if(a%2==1)
  8. {
  9.   printf("%d is an Odd Number",a);
  10. }
  11. else
  12. {
  13.   printf("%d is an Even Number",a);
  14. }
  15. }

 Output for the Above Program 
After running the program, you will get a message like...
Enter the Number You Want to Check: _

You may give any number you want to check if Even or Odd. If you provide the number 9 and press the Enter Key, then you will get the following result.
9 is an Odd Number

Description of the above Codes

 First Line 
In the first line there is written #include<stdio.h>. stdio.h is a Header File. So I have commanded the Computer to include the Header File stdio.h by the codes #include<stdio.h>. conio.h and math.h are also two Header files. If you want to add them then you have to write #include<conio.h> to include conio.h header file and #include<math.h> to add the math.h header file. When you need to add two or more header files in a program then you have to write like...

#include<stdio.h>
#include<conio.h>
#include<math.h>

 Fourth Line 
In the fourth line there is written int a;. Here a is a variable where we will store the number we will provide from keyboard.

 Second Line 
In the Second Line I have written void main(). This is the main part of a C++ Program. You have to keep inside of void main() all of the command you want to use. The structure of void main() is given below.

void main()
{
Commads you want to use
}

 Fifth Line 
In the fifth line I have written printf("Enter the Number You Want to Check: ");.  Here printf is a command included in stdio.h header file. We have used this command to show some text in the output. The structure of printf is printf("Enter the Number You Want to Check: ");  That means you have to keep the text inside of the two double quotation (""). The program will show the text you will keep inside the Double Quotation. Though C++ does not support Capital Letter but you may use it here. That means you may write printf("YOUR TEXT"); if you want.

 Sixth Line 
In the sixth line there is written scanf("%d",&a);. By this line the computer will store the provided integer number in the memory location a.

Monday, April 1, 2013

C program to add tab space


Sometimes we need to create some gap at the beginning of a line that is formally name as tab space and we do that using the Tab button during typing in Microsoft Office Word. But to do so in output of a c program we have to use \t command. An example is given below.

#include<stdio.h>
void main(){
   printf("www.iDhali.com\n");
   printf("\t-by Uzzwal Dhali");
}

Output for the Above Codes
www.iDhali.com
-by Uzzwal Dhali

Code Description

1. In the first line I have added the standard input out header file by using the line #include<stdio.h>conio.h and math.h are also two Header files.

2. In the second line there is written void main(). This is the main function of a C program.

void main() {
   all other codes
}

3. In the fourth line there is written printf("www.iDhali.com\n"); That's why the program will output www.iDhali.com after executing the third line. And for the \n after www.iDhali.com will create a new line (as like as we get after pressing the Enter key during typing.

4. In the fifth line there is written printf("\t-by Uzzwal Dhali"); This line will also output the text inside the double quotation (" "), but a tab space will be created before the line.

Advertisement