How to Make a Table in Turbo C

#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int count,table,a;
printf("input table=");
scanf("%d",&table);
for(count=1;count<=10;count=count+1)
{
a=table*count;
printf("\n%d*%d=%d",table,count,a);
}
getch();
}

C Coding of Smilee in Turbo C

#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int count;
for(count=1;count<=255;count=count+1)
{
printf("\t%d",count);
printf(" %c",count);
}
getch();
}

How to Make a Starik Cube in Turbo C

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

int main(void)
{
int a;
clrscr();
printline(20,'*');
getch();
return 0;
}

C Coding of a Number is Prime or Not

#include<stdio.h>
#include<conio.h>
int main()
{
int num,i,count=0;
clrscr();
printf("input number=");
scanf("%d",&num);
for(i=2;i<=num/2;i++)
{
if(num%i==0)
count++;
}
if(count==0&&num!=1)
printf("%d is a prime number",num);
else
printf("%d is not a prime number",num);
getch();
return 0;
}

C Coding Show Positive or Negative Number

#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int number,positve=0,negative=0,zero=0;
do
{
printf("input number=");
scanf("%d",&number);
{
if(number>0)
positve++;
if(number<0)
negative++;
if(number==0)
zero++;
}}
while(number!=-1);
printf("\npositve number= %d",positve);
printf("\nnegative number= %d",negative);
printf("\nzero number= %d",zero);
getch();
}

What is an Algorithm...?

What is an Algorithm...?

                 An algorithm (pronounced AL-go-rith-um) is a procedure or formula for  solving a problem. The word derives from the name of the mathematician,  Mohammed ibn-Musa al-Khwarizmi, who was part of the royal court in  Baghdad and who lived from about 780 to 850. Al-Khwarizmi's work is the  likely source for the word algebra as well.

A computer program can be viewed as an elaborate algorithm. In  mathematics and computer science, an algorithm usually means a small  procedure that solves a recurrent problem.



Different types of algorithms:-

1)      Brute force


2)      Divide and conquer


3)      Decrease and conquer


4)      Dynamic programming

5)      Greedy algorithm

6)      Transform and conquer


7)      Backtracking algorithm

Programming Languages...



Programming Language :

             A programming language is a computer language engineered to create a standard form of commands. This is very inportant language for making a softwares. These commands can be interpreted into a code understood by a machine or computer. Programs are created through programming languages to control the output of a machine through accurate algorithms, similar to the human communication process.

              A programming language is also known as a programming system, computer language or computer system.


C Programming Language (C) :

              C is a computer programming language. C is a high-level and general purpose programming language that is ideal for developing portable applications. Originally intended for writing system software, C was developed at Bell Labs by Dennis Ritchie for the Unix Operating System (OS) in the early 1970s.


C++ Programming Language :

                 C++ is also a computer programming language. C++ is an object oriented programming (OOP) language, developed by Bjarne Stroustrup, and is an extension of C language. It is therefore possible to code C++ in a "C style" or "object-oriented style." In certain scenarios, it can be coded in either way and is thus an effective example of a hybrid language.

C++ is a general purpose object oriented  language. It is considered to be an intermediate level language, as it encapsulates both high and low level language features. Initially, the language was called 'C with classes’ as it had all properties of C language with an additional concept of 'classes’. However, it was renamed to C++ in 1983.