We Post only the Best Stuff

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

#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
int=a,b,c;
printf("Enter the Length and Breadth of Rectangle: ");
scanf("%d %d",&a,&b);
c=a*b;
printf("Area of Rectangle = %d",c);
getch();
}
Another Way to show more effective programming (For Advance Users):-

#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
int=a,b,c;
printf("Enter the Length of Rectangle: ");
scanf("%d",&a);
printf("Enter the Breadth of Rectangle: ");
scanf("%d",&b);
c=a*b;
printf("Area of Rectangle = %d",c);
getch();
}

For further C Language Tutorials Keep Visiting as I will be posting most of them as soon as possible so don't forget to visit tomorrow also :-
TechJatt - The source for all kind of Tutorial on C Language

Like Us on Facebook or Follow on Twitter or Add to Circles on Google + to remain updated
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