#include <stdio.h>
#include <conio.h>
void main()
{
int n=0;
printf("\n\nEnter a number: ");
scanf("%d", &n);
n=n*n;
printf("\nThe square is %d ", n);
getch();
}
BY: Eng . Ali Saed
write a program that reads in the size of the side of square and then pints a hollow square of that size out of asterisks and blanks?
x -=y;
write a vb program to find the magic square
Write a program in c++ that take input in a integer matrix of size 4*4 and find out if the entered matrix is diagonal or not.
Reference:cprogramming-bd.com/c_page1.aspx# array programming
write a program that reads in the size of the side of square and then pints a hollow square of that size out of asterisks and blanks?
x -=y;
write a vb program to find the magic square
int first= 1;
To write a program in QBASIC to find the area of a square, you first need to prompt the user to enter the length of one side of the square. You can then calculate the area by squaring the length (multiplying it by itself) and finally display the result. Here's a simple example: INPUT "Enter the length of the side of the square: ", side area = side * side PRINT "The area of the square is: "; area
Write a program in c++ that take input in a integer matrix of size 4*4 and find out if the entered matrix is diagonal or not.
Reference:cprogramming-bd.com/c_page2.aspx# reverse number
Reference:cprogramming-bd.com/c_page1.aspx# array programming
write a c program to accept a number and generate a square root cube and exponential values
num = InputBox("Enter a number: ","PROGRAM: Square") sumSquare = CInt(num) * CInt(num) MsgBox("The square of " & num & " = " & sumSquare) ===== *NOTE*: The function CInt() is what we use to convert a text string to become a numeric integer value.
I am not sure whether the term "incommensurable" is appropriate here; the official term is "irrational", which means it can't be expressed exactly as a ratio: you can't write a fraction with integer numerator and denominator which is exactlyequal to the square root of 5 (or of any other integer that is not a perfect square) - but you can obviously get very close to the exact value with such a fraction. If you write the square root of 5 as a decimal, you will get an infinite amount of decimal digits, which will not repeat.I am not sure whether the term "incommensurable" is appropriate here; the official term is "irrational", which means it can't be expressed exactly as a ratio: you can't write a fraction with integer numerator and denominator which is exactlyequal to the square root of 5 (or of any other integer that is not a perfect square) - but you can obviously get very close to the exact value with such a fraction. If you write the square root of 5 as a decimal, you will get an infinite amount of decimal digits, which will not repeat.I am not sure whether the term "incommensurable" is appropriate here; the official term is "irrational", which means it can't be expressed exactly as a ratio: you can't write a fraction with integer numerator and denominator which is exactlyequal to the square root of 5 (or of any other integer that is not a perfect square) - but you can obviously get very close to the exact value with such a fraction. If you write the square root of 5 as a decimal, you will get an infinite amount of decimal digits, which will not repeat.I am not sure whether the term "incommensurable" is appropriate here; the official term is "irrational", which means it can't be expressed exactly as a ratio: you can't write a fraction with integer numerator and denominator which is exactlyequal to the square root of 5 (or of any other integer that is not a perfect square) - but you can obviously get very close to the exact value with such a fraction. If you write the square root of 5 as a decimal, you will get an infinite amount of decimal digits, which will not repeat.
$n = 10*(1+10)/2;