We Post only the Best Stuff

Showing posts with label C Language. Show all posts
Showing posts with label C Language. Show all posts

Types of Computer Language

Programming Languages Simplified

COMPUTER LANGUAGES

In all over the world, language is the source of communication among human beings. Different countries/regions have different languages. Similarly, in order to communicate with the computer user also needs to have a language that should be understood by the computer. For this purpose, different languages are developed for performing different types of work on the computer.Basically, languages are divided into two categories according to their interpretation.
  1. Low Level Languages.
  2. High Level Languages.

Simple Interest using C Language

Previous Program »» Calculate Factorial using C Language
This post is about making a program to calculate Simple Interest using C Language.
The programming for calculating Simple Interest using C Language goes like this:-

#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
int=a,b,c,d;
printf("Enter the Amount:  \n");
scanf("%d",&a);
printf("Enter the Rate of Interest:  \n");
scanf("%d",&b);
printf("Enter the Time:  \n");
scanf("%d",&c);
d=a*b*c/100;
printf("The Simple Interest for %d is  = %d",a,c);
getch();
}

Next Program »» Coming soon

For further Knowledge and Tutorial Keep Visiting :-
TechJatt - The source for all kind of Tutorial on Ethical Hacking

Follow Us on Facebook or Twitter or Add to Circles on Google + to remain updated

Calculate Factorial using C Language

Previous Program »» Convert foots to Centimeters

This is a new approach in C Language up to now as compared to tutorials I have published before. Please try to understand it with a bit more patience and presence of mind.
The coding for C Langyage Program to calculate Dactorial goes like this:-

#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
int=n,c,fact=1;
printf("Enter the number whose Factorial is to be calculated: ");
scanf("%d",&n);
for (c=1; c<=n; c++)
fact=fact*c;
printf("The Factorial of %d = %d",n,fact);
getch();
}

Next Program »» Simple Interest using C Language

For further Knowledge and Tutorial Keep Visiting :-
TechJatt - The source for all kind of Tutorial on Ethical Hacking

Like Us on Facebook or Follow on Twitter or Add to Circles on Google + to remain updated

Check whether a no. is divisible by other or not

Previous Program »» C Program to check Leap Year

The coding of this program is quite simple. It goes like this:-

#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
int=a,b;
printf("Enter the Dividend: ");
scanf("%d",&a);
printf("Enter the Divisor: ");
scanf("%d",&b);
if (a%b==0);
{
printf("%d is divisible by %d",b,a);
}
else
{
printf ("%d is not divisible by %d",b,a);
}
getch();
}
Next Program »» C Program to Convert Foots to Centimeters



For further Knowledge and Tutorial Keep Visiting :-
TechJatt - The source for all kind of Tutorial on Ethical Hacking

Like Us on Facebook or Follow on Twitter or Add to Circles on Google + to remain updated

Convert Foots to Centimeters

Previous Program »» C Program to check whether a number is divisible by other or not

This program is somewhat tricky. Some basics you should know about this program include:-
1 foot = 12 inches
1 Inch = 2.54 Cms

Now the coding partstarts which goes like this:-

#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
int=a,b,c;
printf("Enter the Foot: ");
scanf("%d",&a);
printf("Enter the Inches: ");
scanf("%d",&b);
c=(a/2.54*12)+(b*2.54);
printf("Height in centimetres is = %d",c);
getch();
}

Next Program »» C Program to Calculate Factorial of given number

For further Knowledge and Tutorial Keep Visiting :-
TechJatt - The source for all kind of Tutorial on Ethical Hacking

Like Us on Facebook or Follow on Twitter or Add to Circles on Google + to remain updated

C Program to check whether Year is Leap or not

Previous Program »» C Program to find out whether number is even or odd

This Program also works on the principle of even/odd number program and its coding goes like this:-

#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
int=n;
printf("Enter the Year: ");
scanf("%d",&n);
if (n%4==0);
{
printf("It is a leap Year");
}
else
{
printf ("It is not a leap Year");
}
getch();
}
Next Program »» Check whether a number is divisible by other or not


For further Knowledge and Tutorial Keep Visiting :-
TechJatt - The source for all kind of Tutorial on Ethical Hacking

Like Us on Facebook or Follow on Twitter or Add to Circles on Google + to remain updated

Check whether number is Even or Odd in C Program

Previous Program »» C Program to compare 3 Numbers

This program will teach you about the coding of program which will tell us whether a given number is even or odd. The coding of this program goes like this:-

#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
int=n;
printf("Enter the number: ");
scanf("%d",&n);
if (n%2==0);
{
printf("Number is even");
}
else
{
printf ("Number is odd");
}
getch();
}

Next Program »» C Program to check Leap Year

For further Knowledge and Tutorial Keep Visiting :-
TechJatt - The source for all kind of Tutorial on Ethical Hacking

Like Us on Facebook or Follow on Twitter or Add to Circles on Google + to remain updated

C Program to compare 3 Numbers

Previous Program »» C Program to compare 2 Numbers

In this tutorial, we will learn how to compare 3 numbers and tell which of the 3 is biggest. This is advanced version of the previous program. The coding for this C Program goes like this:-

#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
int=a,b,c;
printf("Enter any 3 numbers: ");
scanf("%d %d %d",&a,&b,&c);
if (a>b && a>c);
{
printf("a is big");
}
else if (b>a && b>c)
{
printf ("b is big");
}
else
{
printf ("c is big");
}
getch();
}

Next Program »» C Program to find out whether number is even or odd

For further Knowledge and Tutorial Keep Visiting :-
TechJatt - The source for all kind of Tutorial on Ethical Hacking

Like Us on Facebook or Follow on Twitter or Add to Circles on Google + to remain updated

C Program to compare 2 Numbers

Previous Program »» C Program for specific formula

Here we will learn a program to compare 2 numbers and tell which of the 2 is big.
The Program goes like this:-

#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
int=a,b;
printf("Enter any two numbers: ");
scanf("%d %d",&a,&b);
if (a>b);
{
printf("a is big");
}
else
{
printf ("b is big");
}
getch();
}

Next Program »» C Program to compare 3 Numbers

For further Knowledge and Tutorial Keep Visiting :-
TechJatt - The source for all kind of Tutorial on Ethical Hacking

Like Us on Facebook or Follow on Twitter or Add to Circles on Google + to remain updated

C Program for specific formula

Previous Program »» C Program for Addition of 2 Numbers

Here we will write a Program in C Language to calculate the answer according to the specific formula
Here the formula I have used is e=(a*b)/(c-d)

So, the coding goes like this:-
#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
int=a,b,c,d,e;
printf("Enter 4 numbers: ");
scanf("%d %d %d %d",&a,&b,&c,&d);
e=(a*b)/(c-d);
printf("The solution is = %d",e);
getch();
}
Next Program»» C Program to compare 2 numbers

For further Knowledge and Tutorial Keep Visiting :-
TechJatt - The source for all kind of Tutorial on Ethical Hacking

Like Us on Facebook or Follow on Twitter or Add to Circles on Google + to remain updated

Addition of 2 Numbers in C Language

Previous Program »» Quotient and Remainder of 2 numbers in C

The program for addition of 2 numbers in C Language is as follows:-

#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
int=a,b,c;
printf("Enter two numbers to be added: ");
scanf("%d %d",&a,&b);
c=a+b;
printf("The sum is = %d",c);
getch();
}

Next Post »» C Program for a specific formula

For further Knowledge and Tutorial Keep Visiting :-
TechJatt - The source for all kind of Tutorial on Ethical Hacking

Like Us on Facebook or Follow on Twitter or Add to Circles on Google + to remain updated

Find Quotient as well as Remainder of 2 numbers

Previous Program »» Hello World Program in C

Here's the program to find out quotient as well as remainder from 2 numbers using C Language as your programming language

We assume something here:-


Here we have used the property of division i.e.
Dividend = (Divisor * Quotient) + Remiander
       a       = (      b     *         c    )  +        d
therefore,
Remiander = Dividend - (Divisor * Quotient)
       d         =        a      -  (    b     *        c       )

#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
int=a,b,c,d;
printf("Enter the Dividend and Divisor: ");
scanf("%d %d",&a,&b);
c=a/b;
printf("Quotient is = %d",c);
{
d=a-(b*c);
printf("Remiander is = %d",d);
}
getch();
}
Next Post »» C Program for Addition of 2 Numbers


For further Knowledge and Tutorial Keep Visiting :-
TechJatt - The source for all kind of Tutorial on Ethical Hacking

Like Us on Facebook or Follow on Twitter or Add to Circles on Google + to remain updated

Hello World Program in C Language

In this post we shall be dealing with Hello World program - The Most Popular and simplest and basic program of C Language. So the oding of Program goes like this

"Hello World" Program in C Language


#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
printf("Hello World");
getch();
}

The above program will print "Hello World" on your Computer screen

Another Example:

C Program for Division

Previous Post »» Hello World Program in C Language

I this article We will be dealing with the Division of 2 numbers using C Language:-

Division of 2 numbers in C Language

#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
int=a,b,c;
printf("Enter the Dividend and Divisor: ");
scanf("%d %d",&a,&b);
c=a/b;
printf("Division of %d and %d is = %d"a,b,c);
getch();
}
Another Way to present above statement efficiently (For Advance Users only):-

C Program to find Area of Rectangle

Next Post »» Hello World in C Language

Hi Friends,
I am starting this new section called C Language Programming tutorials on my site http://www.techjatt.tk and I will start it by posting my first article for area of rectangle today.
Today I am gonna post the Coding for C Program to calculate Area of Rectangle Hope it may help as I have written 20+ codes for various simple programs of C Language so I will be posting them in count of 2-3 daily and post all of them before Saturday, 23-Feb-2013

So here's the code to calculate the

Area of Rectangle

Support : Contact Us | Privacy Policy | Site Map
Copyright © 2013. Tech Jatt - All Rights Reserved
Site Design by Nitin Kundu Licensed to Tech Jatt
Proudly powered by Blogger