0% found this document useful (0 votes)
4 views9 pages

2nd LAB

The document outlines a series of programming experiments conducted by Sumanyu Rajput, each with a specific aim such as performing arithmetic operations, calculating factorials, summing numbers, checking for prime numbers, and printing Fibonacci series. Each experiment includes a placeholder for the program code and output. All experiments are part of a coursework for Section A6(IT)-G1.

Uploaded by

Sumanyu Rajput
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)
4 views9 pages

2nd LAB

The document outlines a series of programming experiments conducted by Sumanyu Rajput, each with a specific aim such as performing arithmetic operations, calculating factorials, summing numbers, checking for prime numbers, and printing Fibonacci series. Each experiment includes a placeholder for the program code and output. All experiments are part of a coursework for Section A6(IT)-G1.

Uploaded by

Sumanyu Rajput
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/ 9

EXPERIMENT – 11

AIM – WAP that takes two operands and one operator from the user, perform the operation, and
prints the result by using Switch-Case statement.

PROGRAM :-

OUTPUT :-

NAME – Sumanyu Rajput SECTION – A6(IT)-G1


EXPERIMENT – 12
AIM – WAP to print the sum of all numbers upto a given number.

PROGRAM :-

OUTPUT :-

NAME – Sumanyu Rajput SECTION – A6(IT)-G1


EXPERIMENT – 13
AIM – WAP to find the factorial of a given number.

PROGRAM :-

OUTPUT :-

NAME – Sumanyu Rajput SECTION – A6(IT)-G1


EXPERIMENT – 14
AIM – WAP to print the sum of even and odd numbers from 1 to N numbers.

PROGRAM :-

OUTPUT :-

NAME – Sumanyu Rajput SECTION – A6(IT)-G1


EXPERIMENT – 15
AIM – WAP to print the Fibonacci series.

PROGRAM :-

OUTPUT :-

NAME – Sumanyu Rajput SECTION – A6(IT)-G1


EXPERIMENT – 16
AIM – WAP to check whether the number is prime or not.

PROGRAM :-

OUTPUT :-

NAME – Sumanyu Rajput SECTION – A6(IT)-G1


EXPERIMENT – 17
AIM – WAP to find the sum of the digits of the number entered.

PROGRAM :-

OUTPUT :-

NAME – Sumanyu Rajput SECTION – A6(IT)-G1


EXPERIMENT – 18
AIM – WAP to find the reverse of a number.

PROGRAM :-

OUTPUT :-

NAME – Sumanyu Rajput SECTION – A6(IT)-G1


EXPERIMENT – 19
AIM – WAP to print Armstrong Numbers from 1 to N.

PROGRAM :-

OUTPUT :-

NAME – Sumanyu Rajput SECTION – A6 G1(IT)

You might also like