Skip to main content

C Program01 Chap01: Area of Squre


/*Prime.Chapter_01/17 Write a program for Area of Squre*/   //document

#include<stdio.h>    //Header file
#include<conio.h>   //Header file Preprocessor Directive

#define N 10        //Symbolic constant

    void main()     //main program starts
{
    int area;       //variable declaration


    area = N*N;     //process stmt

     printf("Area of square:\n"); // o/p stmt

    printf("%d", area);            // to show the output visible

    getch();

    return 0;
}   // Program ends.

Comments

Popular posts from this blog

How to make a Calculator

Calculator  - Visual Basic 2008 / 2010 Part- 1 This tutorial will show you how to make a basic calculator: Click on Project next to Create:  Click on Windows Form Application, and name the project "Your name's Calculator" and then click Ok. You can change the form text to "your name's calculator". Click on the form and then go to properties window, then change the text property. You also need to disable the maximize control of the form. That's because you don't want the user to maximize the calculator. Go to the properties window, and change the maximize box property to False:   You also need to change the FormBorderStyle property to Fixed3D   Add a button to the form and place on top of the form:   You might be surprised of this button because we should have placed a text box instead. Well, this is the cool thing about Visual Basic 2008, you can use a button to display text and results. Now we have to change the button prope...

Joomla Video Tutorials-03

How to install Joomla Locally     3. Installing Joomla

Division of Bangladesh

      Seven Division of Bangladesh Dhaka Khulna Rjshahi Shylet Chittagong Barishal Rangpur &amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;a href="http://www.widgeo.net"&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;widgeo.net&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;/a&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;