0% found this document useful (0 votes)
40 views

Experiment 1: 1. Write A Program For Hello World

The document outlines 8 programming experiments including writing programs to output "hello world", find the factorial of a number, calculate the average of 10 numbers, determine if a number is even or odd, calculate the square of a number, find the lowest common multiple and highest common factor of two numbers, find the largest of three numbers, and find the largest and smallest of 10 numbers. For each experiment, the source code and output are not included.

Uploaded by

raghav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views

Experiment 1: 1. Write A Program For Hello World

The document outlines 8 programming experiments including writing programs to output "hello world", find the factorial of a number, calculate the average of 10 numbers, determine if a number is even or odd, calculate the square of a number, find the lowest common multiple and highest common factor of two numbers, find the largest of three numbers, and find the largest and smallest of 10 numbers. For each experiment, the source code and output are not included.

Uploaded by

raghav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

EXPERIMENT 1

1. Write a program for hello world.


SOURCE CODE:

OUTPUT:
2. Write a program to find factorial of a number
SOURCE CODE:

OUTPUT:
3. Write a program to find the average of 10 numbers.
SOURCE CODE:

OUTPUT:
4. Write a program to find whether number is even or odd.
SOURCE CODE:

OUTPUT:
5. Write the program to find square of number.
SOURCE CODE:

OUTPUT:
6. Write a program to find lcm and hcf.
SOURCE CODE:

OUTPUT:
7. Write a program to find largest of three numbers.
SOURCE CODE:

OUTPUT:
8. Write a program to find the largest and smallest of 10
numbers.
SOURCE CODE:

OUTPUT:

You might also like