Bài đăng

Đang hiển thị bài đăng từ Tháng 11, 2018

Swagbucks Review — Is Swagbucks a Scam or a Legit?

Hình ảnh
How I Earn From Swagbucks  click on the link and join and start earning - https://www.swagbucks.com/p/register?rb=50161109 I have to admit that when I first went on the Swagbucks page, I was a bit puzzled and a little suspicious. It mentioned things like being a "first rewards site" and a leading online search engine. Even if they were a search engine, how can one produce rewards? Yet why haven't I ever learned about them? Okay, it turns out that Swagbucks is very true too. In a nutshell, Swagbucks is a search engine much like Google or Request, except you can earn award points only by browsing the site. And the forum is currently funded by Google and Ask! Join now -  https://www.swagbucks.com/p/register?rb=50161109 Swagbucks is a fairly good spot overall. You may easily load their toolbar on your device right next to your Google Toolbar and browse the Internet from there. The findings are similar to the same issue. When you're using the Web for analysis or job reason...

Smallest and Largest elements from One Dimensional Array using C program

Hình ảnh
// Smallest and Largest elements from One Dimensional Array using C program #include<stdio.h> #include<conio.h> void main() { clrscr(); int a[50],i,n,large,small; printf("How many elements:"); scanf("%d",&n); for(i=0;i<n;++i) { printf(“enter %d  element “,i+1); scanf("%d",&a[i]); } large=small=a[0]; for(i=1;i<n;++i) { if(a[i]>large) large=a[i]; if(a[i]<small) small=a[i]; }  printf("The largest element is %d",large); printf("\nThe smallest element is %d",small); getch(); } Output: / / A program to display series from 1 to 50. / / A program to find the person is eligible for voting or not.   / /A C program to find largest number among 3. / / A C program to perform arithmetic operations using switch case. //  A program to print the name 10 times.  

A C program to print all leap years from 1 to N

Hình ảnh
// A C program to print all leap years from 1 to N #include <stdio.h> #include <conio.h> void main() {clrscr(); int year, y;    printf("\nEnter Years : "); scanf("%d",&year); printf("\nThe Leap years are : "); for( y = 1 ; y <= year ; y++ ){ if((y % 400 == 0 )|| ((y % 4 == 0)&& (y %100 != 0))) printf("\n Year : %d",y); }} getch(); } Output: / / A program to display series from 1 to 50. / / A program to find the person is eligible for voting or not.   / /A C program to find largest number among 3. / / A C program to perform arithmetic operations using switch case. //  A program to print the name 10 times.  

A C program to find sum of even numbers between 1 to N using for loop

Hình ảnh
//A C program to find sum of even numbers between 1 to N using for loop  #include<stdio.h> #include<conio.h> void main() { clrscr(); int i, n, sum=0; printf("Enter tne number: "); scanf("%d", &n); for(i=2; i<=n; i+=2) { sum += i; } printf("Sum of all even number between 1 to %d = %d", n, sum); getch(); } Output: / /A C program to find largest number among 3. / / A C program to perform arithmetic operations using switch case. //  A program to print the name 10 times. / /A C program to print ODD numbers from 1 to N using while loop.

A C program to print Fibonacci series till Nth term.

Hình ảnh
//A C program to print Fibonacci series till Nth term. #include <stdio.h> #include <conio.h> void main() { clrscr(); int n,a=0,b=1,c=0,i; printf("Enter number of terms in Fibonacci series: "); scanf("%d", &n); printf("%d\t%d\t",a,b);  for(i = 0; i< n;i++) { c = a+b; printf("%d\t",c); a=b; b=c; } getch(); } Output: / / A program to find the person is eligible for voting or not.   / /A C program to find largest number among 3. / / A C program to perform arithmetic operations using switch case. //  A program to print the name 10 times. / /A C program to print ODD numbers from 1 to N using while 

A C program to print sum of all prime numbers between 1 to N.

Hình ảnh
// A C program to print sum of all prime numbers between 1 to N #include<stdio.h>  #include<conio.h>  void main() {  clrscr();  int count, N, i,Prime, pSum=0;     printf("Enter a Number\n");   scanf("%d", &N);    for(count = 2; count <= N; count++)  { Prime = 1; for(i = 2; i <=(count/2); ++i)  { if(count%i==0)  { Prime = 0; break; } } if(Prime==1) pSum+=count; }  printf("Sum of Prime Numbers between 1 to %d : %d", N,pSum); getch(); } Output:  //  A program to print the name 10 times. / /A C program to print ODD numbers from 1 to N using while loop. // A C program to print ODD numbers from 1 to N using for loop.    / / A C program to check whether a number is prime number or not  

A C program to check whether a number is prime number or not.

Hình ảnh
// A C program to check whether a number is prime number or not #include<stdio.h> #include<conio.h> void main() { int num,i,Prime=0; printf("Enter a positive number\n"); scanf("%d",&num); for(i=2;i<=(num/2);++i) { if(num%i==0) { Prime=1; break; } } if(Prime==0) printf("%d is a Prime Number",num); else printf("%d is NOT a Prime Number",num); getch(); } Output: //  A program to print the name 10 times. / /A C program to print ODD numbers from 1 to N using while loop. // A C program to print ODD numbers from 1 to N using for loop.  

A C program to find factorial of a number.

Hình ảnh
// A C program to find factorial of a number #include<stdio.h> #include<conio.h> void main() { clrscr(); int n,fact=1,i=1; printf("Enter an integer number: "); scanf("%d",&n); for(i=n;i>=1;i--) { fact=fact*i; } printf("\nFactorial of %d is = %d",n,fact); getch(); } Output: / / A Program to find odd or even. / / A Program to add two numbers.   / / A program to display series from 1 to 50. / / A program to find the person is eligible for voting or not.   / /A C program to find largest number among 3. / / A C program to perform arithmetic operations using switch case. //  A program to print the name 10 times. / /A C program to print ODD numbers from 1 to N using while loop. // A C program to print ODD numbers from 1 to N using for loop.   / /A program to check the number is Positive, Negative or Zero using C program.  

A program to check the number is Positive, Negative or Zero using C program.

Hình ảnh
//A program to check the number is Positive, Negative or Zero using C program. #include<stdio.h> #include<conio.h>                    void main() { int num; char choice; do { printf("Enter an integer number :"); scanf("%d",&num); if(num==0)       printf("Number is ZERO."); else if(num>0)    printf("Number is POSITIVE."); else           printf("Number is NEGATIVE."); printf("\n\nWant to check again (press Y/y for 'yes') :"); scanf(" %c",&choice); /*Here is a space before %c*/ }while(choice=='Y' || choice=='y'); printf(“Bye Bye !!!”); getch();              } Output: / / A Program to find odd or even. / / A Program to add two numbers.   / / A program to display series from 1 to 50. / / A program to find the person is eligible for voting or not.   / /A C program to find largest number among 3. / / ...

Struggle of Butterfly

Hình ảnh
A biology teacher was teaching his students how a caterpillar turns into a butterfly. He told the students that in the next couple of hours, the butterfly would struggle to come out of the cocoon but no one should help the butterfly. Then he left.  The students were waiting and it happened. The butterfly struggled to get out of the cocoon and against the advice of the teacher; one of the students took pity on it and decided to help the butterfly out of the cocoon. He broke the cocoon to help the butterfly so it didn’t have to struggle anymore. Then within a short moment, the butterfly died.  When a teacher returned, he was told what had happened. He explained to the student that it is a law of nature that the struggle to come out of the cocoon actually helps to develop the strength of the butterfly’s wing. Bu helping the butterfly, the boy had deprived the butterfly of its struggle and the butterfly died.  source: You can win, By Shiv Khere

Sharpen Your Axe

Hình ảnh
Mack, a woodcutter, worked for a company for 10 years but never got a raise. Then the company hired Mick and within a year he got a raise. Then Mack got angry on the rise of Mick only in a year and went to his boss to talk about it. The boss said “You are still cutting the same number of trees you were cutting 10 years ago. We are a result oriented company and would be happy to give you a raise if your productivity goes up.”  Mack went back, started cutting trees by hitting harder and putting longer time but he still wasn’t able to cut more trees. He went back to his boss and told him his dilemma. The boss told Mack to go talk to Mick. Then Mack went to Mick and asked Mick that how he had managed to cut more trees. Mick answered, “After every tree I cut, I take a break for two minutes and sharpen my axe. When was the last time you sharpened your axe?” source: You can win, By Shiv Khere

Advantages and Disadvantages of C programming Language

Hình ảnh
C Language has a list of advantages due to this it is very much popular language around the world and best suitable for the programmer to learn at the first stage of the programming. Advantages of C Programming Language: C is a highly portable language. This means that C programs written for one computer can easily run on another computer without any change or by doing a little change. C Language code or syntax is very easy to understand. It uses a keyword like if, else, switch, main, etc. This kind of keyword we all are using in our day to day life to get some decisions.  C compiler is very fast compared to other language compilers. C compiler can compile around 1000 lines of code in a second. It is more efficient than unstructured code because of minimized branching of the code. Maintenance the C code is easy due to the readability of the code. Adding new feature is easier and faster.  Program code is secured Disadvantages of C Programming Language:  C does not have...

8 Steps to Change the Attitude

Hình ảnh
A book “ You Can Win ” by Shiva Khera details step-by-step formula for becoming a top achiever in life. If you want to build and maintain positive attitude, you need to practice the following step consciously. The steps to change attitude: source:  Flickr • Change Focus, Look for the Positive:  “There is something positive in every person in every situation. We have to dig deep to look for the positive.”  Spend so much time improving yourself that you have no time left to criticize. Be an optimist, and give everyone a smile. • Make a Habit of doing it now: Make a habit of living in the present and doing it now rather than procrastinating. Live in a present, stop the habit of procrastinating.  “Never leave till tomorrow, which you can do today.” • Develop an attitude of Gratitude: Count your blessing but don’t count your trouble; make smile and celebrate every small win.  • Get into Continuous Education Process: We all are gifted with some strength. So, contin...

Look for The Gold

Hình ảnh
Andrew Carnegie came to America from Scotland as a young boy. He started out by doing odd jobs and ended up as one of the largest steel manufacturers in United State. At one time, he had 43 millionaires working for him. A million dollars is a lot of money today, but in the 1920s it was worth much more.  Someone once asked Mr. Carnegie how he dealt with the people. Andrew Carnegie replied, “dealing with people is a lot like digging for gold: When you go digging for an ounce of gold you have to move tons of dirt. But when you go digging, you don’t go looking for the dirt, you go looking for the gold.”  image source: Pixabay Andrew Carnegie’s reply has a very important message. Though sometimes it may not be apparent there is something positive in every person and every situation. We have to dig deep to look for the positive. source: You can win, By Shiv Khere 

Disadvantages of Database Management System (DBMS)

Hình ảnh
Initial investment is high for implementing DBMS. Proper training is required for staff to work properly in database system. When some fault occurs in one part of the database it affects the other parts as well.  It is complex to understand and implement.  Overhead cost for providing security, recovery, and integrity functions.  Cost for the maintenance of the hardware, software, backup, recovery and its upgrade remains forever.  Problem arises if the database designers and DBA do not properly design the database or if the database application systems are not implemented properly.  image source: Pixabay The question related to DBMS: Advantages of Database Management System (DBMS)   What is data, database and DBMS?

David and Goliath

Hình ảnh
We all know the Biblical story of David and Goliath. Goliath was a giant of a man. He stuck fear in everyone’s heart. One day, a 17-years-old shepherd boy came to visit his brothers and asked. “Why don’t you stand to and fight the giant?” The brothers were terrified of Goliath and they replied. “Don’t you see he is too bit to hit?” but David said, “No he is not too big to hit, he is too big to miss.” The rest is history. We all know what happened. David killed the giant with the slingshot. Same giant, different perceptions.    image source : esotericmeanings.com source: You can win, By Shiv Khere 

Acres of Diamonds

Hình ảnh
John was a farmer in Africa who was happy and content. He was happy because he was content, and he was content because he was happy. One day a wise man come to him and told him about the glory of diamonds and the power that goes along with them. the wise man said, “If you had a diamond the size of your thumb, you could buy your own city. If you had a diamond the size of your fist, you could probably own your own country.” and then the wise man left. That night, John couldn’t sleep. He was unhappy and discontented.  image source:  Wikimedia Commons The next morning John made arrangement to sell his farm, took care of his family, and went off in search of diamonds. He looked all over Africa and couldn’t find any. He looked all through Europe and couldn’t find any. By the time he got to Spain, he was emotionally, physically, and financially depleted. He was so disheartened that he committed suicide by throwing himself into the Barcelona River.  Back home, the person had...

Black Balloon

Hình ảnh
There was a man who made his living selling balloons at an affair. He had balloons of many different colors, including red, yellow, blue, and green. Whenever business was slow, he would release a helium-filled balloon into the air. When the children saw the balloon go up, they all wanted one. They would come up to him, buy a balloon and his sales would go up.  All day, he continued to release a balloon whenever the sales slowed down. One day, the balloon man felt someone tugging at his jacket. He turned around and a little boy asked, “If you release a black balloon, would that also fly?” moved by the boy’s concern, the man replied gently, “Son, it is not the color of the balloon, it is what’s inside that makes it go up.” source: You can win, By Shiv Khere