#include<stdio.h>
#include<conio.h>
void main()
{
int c=1,i;
unsigned int s=0;
clrscr();
for(i=1,(i<=15;i++))
{
if(i%2==0)
{
s=s+i;
c=c+i;
}
}
printf("/n sum of the first 15 even numbers is%d",s);
printf("/n square of the sum is: %d",(s*s));
getch();
}
write a c program to accept a number and generate a square root cube and exponential values
Here's a simple Python program that takes two numbers as input and prints each number alongside its square: # Input two numbers num1 = float(input("Enter the first number: ")) num2 = float(input("Enter the second number: ")) # Print each number and its square print(f"Number: {num1}, Square: {num1**2}") print(f"Number: {num2}, Square: {num2**2}") This program uses the input function to read numbers, converts them to floats, and then calculates and displays their squares.
fdsgfhgdfhgdf
program to find maximum of two numbers using pointers
N = x If y < N then N = Y If z < N then N = z Print N
write a c program to accept a number and generate a square root cube and exponential values
write a vb program to find the magic square
Please visit http://talentsealed.blogspot.com/2009/10/to-find-sqaure-of-numbers-using-c.htmlfor the answer.
normally
Just write a method or function that calculates the LCM for two numbers at a time. Then calculate the LCM for the first two numbers, get the LCM of the result with the third number, etc.Just write a method or function that calculates the LCM for two numbers at a time. Then calculate the LCM for the first two numbers, get the LCM of the result with the third number, etc.Just write a method or function that calculates the LCM for two numbers at a time. Then calculate the LCM for the first two numbers, get the LCM of the result with the third number, etc.Just write a method or function that calculates the LCM for two numbers at a time. Then calculate the LCM for the first two numbers, get the LCM of the result with the third number, etc.
write a lex program to delete space from the program
write an assembly language program to find sum of N numbers
First you will need to have some basic programming knowledge. You can use this to help make the program that is needed.
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
int first= 1;
Here's a simple Python program that takes two numbers as input and prints each number alongside its square: # Input two numbers num1 = float(input("Enter the first number: ")) num2 = float(input("Enter the second number: ")) # Print each number and its square print(f"Number: {num1}, Square: {num1**2}") print(f"Number: {num2}, Square: {num2**2}") This program uses the input function to read numbers, converts them to floats, and then calculates and displays their squares.
write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? check bellow link http://bashscript.blogspot.com/2009/08/gcd-of-more-than-two-numbers.html