Tuesday, 25 August 2020

HOW TO SOLVE/FIND AREA OF SQUARE IN C PROGRAM ?

THE FOLLOWING PROGRAM SHOWS ABOUT AREA OF SQUARE:

#include<stdio.h>
#include<conio.h>
void main()
{
int a,s; //a is area and s is side.
clrscr();
printf("Enter the side:\n");
scanf("%d",&s);
a=s*s;
printf("Area of square is %d",a);
getch();
}

IN OUR NEXT POST WE ARE GOING TO LEARN ABOUT ARMSTRONG NUMBERS.

No comments:

Post a Comment

C Programming

What is DBMS in brief?

A Database Management System (DBMS) is a software suite designed to efficiently manage, organize, store, manipulate, and retrieve data. It a...