[go: up one dir, main page]

0% found this document useful (0 votes)
19 views1 page

PIC Lab 3

Uploaded by

jex.esaie
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)
19 views1 page

PIC Lab 3

Uploaded by

jex.esaie
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/ 1

Everest Engineering College

Sanepa-2, Lalitpur
Subject: Programming in C Date of Distribution: . . . . . . . . . . . . . . . .
Date of submission: . . . . . . . . . . . . . . . . .

Lab 3
Title: Loop control statements
Objective:
• To be familiar with loop control statement
Theory:
➢ Introduction and necessity of loop control statements
➢ While loop, do-while loop and for loop (Introduction, syntax, flowchart)
Lab Exercises:( Please code yourself and show the output to the instructor)
1) Write a program to print 100 natural numbers.
2) Write a program to print even numbers between 20 to 200.
3) Write a program to find sum of n natural numbers.
4) Write a program to find sum of even and odd numbers between 50 to 500 as well count
them.
5) Write a program to print multiplication table of a given number.
6) Write a program to find sum of digit of a given number.
7) Write a program to find reverse of a given number.
8) Write a program to check the given number is palindrome or not.
9) Write a program to find factorial of a given number.
10) Write a program to generate the Fibonacci series up to nth term.
11) Write a program to check the given number is prime or not.
12) Write a program to print prime number from 1 to 200.
13) Write a program to check the given number is Armstrong or not.
14) Write a program to print all three digit Armstrong numbers.

Prepared By: Er. Pradip Paudel 1|Page

You might also like