0% found this document useful (0 votes)
28 views25 pages

New Microsoft Word Document

The document appears to be a collection of lab reports submitted by Hridanjal Neupane to Subash Pariyar. Each report describes a coding exercise completed in Dev C/C++, includes the output in the command prompt, and concludes by stating the knowledge gained from the lab. The labs cover topics like separating and reversing numbers, Armstrong numbers, checking odd/even numbers, prime numbers, positive/negative numbers, if/else statements, modulus division, switch statements, relational operators, loops, factorials, Fibonacci sequences and more.

Uploaded by

Prabesh
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)
28 views25 pages

New Microsoft Word Document

The document appears to be a collection of lab reports submitted by Hridanjal Neupane to Subash Pariyar. Each report describes a coding exercise completed in Dev C/C++, includes the output in the command prompt, and concludes by stating the knowledge gained from the lab. The labs cover topics like separating and reversing numbers, Armstrong numbers, checking odd/even numbers, prime numbers, positive/negative numbers, if/else statements, modulus division, switch statements, relational operators, loops, factorials, Fibonacci sequences and more.

Uploaded by

Prabesh
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/ 25

Dev C/C++ with code

Output in cmd

Conclusion: From this lab, we got the knowledge about how to separate individual
numbers from a single number and reverse it.
Submitted by: Hridanjal Neupane Submitted to: Subash Pariyar

Date: 2078/ / Signature:……………………………


Dev C/C++ with code

Output in cmd

Conclusion: From this lab, we got the knowledge about Armstrong numbers.

Submitted by: Hridanjal Neupane Submitted to: Subash Pariyar

Date: 2078/ / Signature:………………………………


Dev C/C++ with code

Output in cmd

Conclusion: From this lab, we got the knowledge about how to check whether a
number is odd or even.

Submitted by: Hridanjal Neupane Submitted to: Subash Pariyar

Date: 2078/ / Signature:………………………………


Dev C/C++ with code

Output in cmd

Conclusion: From this lab, we got the knowledge about prime numbers and how
to check if a number is prime or not.
Submitted by: Hridanjal Neupane Submitted to: Subash Pariyar

Date: 2078/ / Signature:………………………………


Dev C/C++ with code

Output in cmd

Conclusion: From this lab, we got the knowledge about how to check if a number
is positive or negative using if else

Submitted by: Hridanjal Neupane Submitted to: Subash Pariyar

Date: 2078/ / Signature:………………………………


Dev C/C++ with code

Output in cmd

Conclusion: From this lab, we got the knowledge about how to use if else
statements and modulus division.
Submitted by: Hridanjal Neupane Submitted to: Subash Pariyar

Date: 2078/ / Signature:………………………………


Dev C/C++ with code

Output in cmd

Conclusion: From this lab, we got the knowledge about how to calculate profit or
loss using if, else if, else and absolute value function.

Submitted by: Hridanjal Neupane Submitted to: Subash Pariyar

Date: 2078/ / Signature:………………………………


Dev C/C++ with code

Output in cmd

Conclusion: From this lab, we got the knowledge about how to use relational
operators for comparing three numbers.
Submitted by: Hridanjal Neupane Submitted to: Subash Pariyar

Date: 2078/ / Signature:………………………………


Dev C/C++ with code

Output in cmd

Conclusion: From this lab, we got the knowledge about how to use modulus
division to separate individual numbers from a single number and reverse it.
Submitted by: Hridanjal Neupane Submitted to: Subash Pariyar

Date: 2078/ / Signature:………………………………


Dev C/C++ with code

Output in cmd

Conclusion: From this lab, we got the knowledge about how to use switch
statements.
Submitted by: Hridanjal Neupane Submitted to: Subash Pariyar
Date: 2078/ / Signature:………………………………
Dev C/C++ with code
Output in cmd

Conclusion: From this lab, we got the knowledge about how to use if, else if
statements.
Submitted by: Hridanjal Neupane Submitted to: Subash Pariyar
Date: 2078/ / Signature:………………………………
Dev C/C++ with code

Output in cmd

Conclusion: From this lab, we got the knowledge about how to use loop control
structure to print multiples of numbers.
Submitted by: Hridanjal Neupane Submitted to: Subash Pariyar
Date: 2078/ / Signature:………………………………
Dev C/C++ with code

Output in cmd

Conclusion: From this lab, we got the knowledge about how to use loop control
structure to print multiples of numbers.
Submitted by: Hridanjal Neupane Submitted to: Subash Pariyar
Date: 2078/ / Signature:………………………………
Dev C/C++ with code

Output in cmd

Conclusion: From this lab, we got the knowledge about the formula of adding
multiple even terms.

Submitted by: Hridanjal Neupane Submitted to: Subash Pariyar

Date: 2078/ / Signature:………………………………


Dev C/C++ with code

Output in cmd

Conclusion: From this lab, we got the knowledge about how to use loop control
structure to print prime numbers.
Submitted by: Hridanjal Neupane Submitted to: Subash Pariyar

Date: 2078/ / Signature:………………………………


Dev C/C++ with code

Output in cmd

Conclusion: From this lab, we got the knowledge about how to use logical
operators and how to take percentage of certain numbes.
Submitted by: Hridanjal Neupane Submitted to: Subash Pariyar

Date: 2078/ / Signature:………………………………


Dev C/C++ with code

Output in cmd

Conclusion: From this lab, we got the knowledge about how to use for loop to find
factorial of certain numbers.
Submitted by: Hridanjal Neupane Submitted to: Subash Pariyar

Date: 2078/ / Signature:………………………………


Dev C/C++ with code

Output in cmd

Conclusion: From this lab, we got the knowledge about how to use loop control
structures to print many numbers.

Submitted by: Hridanjal Neupane Submitted to: Subash Pariyar

Date: 2078/ / Signature:………………………………


Dev C/C++ with code

Output in cmd

Conclusion: From this lab, we got the knowledge about how to use loop control
structure to print sequence of numbers.

Submitted by: Hridanjal Neupane Submitted to: Subash Pariyar

Date: 2078/ / Signature:………………………………


Dev C/C++ with code

Output in cmd

Conclusion: From this lab, we got the knowledge about how to use loop control
structure to print sequence of cubic numbers.
Submitted by: Hridanjal Neupane Submitted to: Subash Pariyar

Date: 2078/ / Signature:………………………………


Dev C/C++ with code

Output in cmd

Conclusion: From this lab, we got the knowledge about using loop control
structure to print sequence of Fibonacci numbers.
Submitted by: Hridanjal Neupane Submitted to: Subash Pariyar

Date: 2078/ / Signature:………………………………


Dev C/C++ with code

Output in cmd

Conclusion: From this lab, we got the knowledge about using loop control
structure to print even and odd numbers.
Submitted by: Hridanjal Neupane Submitted to: Subash Pariyar

Date: 2078/ / Signature:………………………………


Dev C/C++ with code

Output in cmd

Conclusion: From this lab, we got the knowledge about using loop control
structure to print sequence of numbers in different lines.
Submitted by: Hridanjal Neupane Submitted to: Subash Pariyar

Date: 2078/ / Signature:………………………………


Dev C/C++ with code

Output in cmd

Conclusion: From this lab, we got the knowledge about using loop control
structure to print factorials of many numbers.
Submitted by: Hridanjal Neupane Submitted to: Subash Pariyar

Date: 2078/ / Signature:………………………………

You might also like