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

c programming code

The document outlines a programming assignment for finding the smallest number in a list of user-inputted numbers. It includes an introduction, problem statement, algorithm steps, and a conclusion that highlights the program's success and potential for future improvements. The program demonstrates the ability to convert algorithms into code and suggests enhancements for handling various data types and larger inputs.

Uploaded by

arnabruet2004
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

c programming code

The document outlines a programming assignment for finding the smallest number in a list of user-inputted numbers. It includes an introduction, problem statement, algorithm steps, and a conclusion that highlights the program's success and potential for future improvements. The program demonstrates the ability to convert algorithms into code and suggests enhancements for handling various data types and larger inputs.

Uploaded by

arnabruet2004
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Premier University

Department of Electrical and Electronic Engineering


Course Title :Basic Computer Programming; Course Code :CSE1204

TITLE: FINDING THE SMALLEST NUMBER IN A LIST.

PRESENTED BY:

Supervised By SURAIYA JANNAT


(0222410005131009)
TUTON CHANDRA MALLICK
Associate Professor TONMOY SHARMA
Department of EEE (0222410005131015)
Premier University
DATE: 25.01.2025
INTRODUCTION AND PROBLEM STATEMENT

INTRODUCTION:
Create a program that will find the smallest number among n numbers given by
the user.

PROBLEM STATEMENT:
The user will input some numbers. The program will find the smallest number
among those numbers and output it
ALGORITHM :

STEP 1: First some initial messages are printed which send a message
to the user that the program will find the smallest number.

STEP 2: The user is asked to input n numbers, which will tell how
many numbers to work on. n integers are taken from the user and
stored in an array.
STEP 3: A loop is used, which allows the user to input each number.
Each time the loop is executed, the user inputs a number, which is
stored in the array.

STEP 4: Assume that the first element is the smallest. .Then the rest
of the numbers are compared using a for loop. If any number is
smaller than smallest, then smallest is updated.

STEP 5: After completing the loop, print the smallest


number.
FIG: CODING OF FIND THE SMALLEST NUMBER
FIG: OUTPUT OF FIND THE SMALLEST NUMBER
Conclusion:
The program works successfully and finds the smallest number. It show
ability to convert algorithms into programming code. In Future we can
Improve the program more, such as handling different data types or
larger inputs. Apply the same method to more complex problems.
THANK YOU

You might also like