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

Class_3::::>>>>HTML Link,Image & Image Link

<!DOCTYPE html> <html>   <head>     <title> Class_3::::>>>>HTML Link,Image & Image Link </title>     </head>       <body>         <a href="index.html" target="_blank" style="text-decoration:none;"> Mypages</a><br /> <a href="http://www.tbsbd.blogspot.com" target="_blank"> GoogleHomePages</a><br /> <a href="mailto:#" target="_blank"> Mail Of Admin</a><br /> <a href="http://www.tbsbd.blogspot.com" target="_blank"> <img src="logo02.gif" alt="This Logo" /> </a>     </body> </html>

How to make a Calculator -(Part-4) of using Visual Basic2010

Calculator  - Visual Basic 2008 / 2010 Page 4 The Zero Button: Double click on the zero button and add the following highlighted code: Private Sub Button14_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button14.Click If Button1.Text = Label1.Text Then Button1.Text = "0." ElseIf Button1.Text = "0." Then Button1.Text = "0." ElseIf Button1.Text = "0" Then Button1.Text = "0." ElseIf Button1.Text = Label3.Text Then Button1.Text = "0." Else Button1.Text = Button1.Text & "0" End If End Sub The Decimal Button: Double click on the decimal button and add the following highlighted code: Private Sub Button15_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button15.Click If Button1.Text = "0." Then Button1.Text = "." ElseIf Button1.Text = Label3.T...