FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[Original HTTPS Page]
cpp-programming/OOP1-Lab3 at main · TMB-Enterprises/cpp-programming · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
TMB-Enterprises
/
cpp-programming
Public
forked from
Rustam-Z/cpp-programming
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cpp-programming
/
OOP1-Lab3
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
Breadcrumbs
cpp-programming
/
OOP1-Lab3
/
Copy path
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
Digits.cpp
Digits.cpp
Fibonacci.cpp
Fibonacci.cpp
Operators.cpp
Operators.cpp
Prime.cpp
Prime.cpp
README.md
README.md
Sum1.cpp
Sum1.cpp
Sum2.cpp
Sum2.cpp
Weekdays.cpp
Weekdays.cpp
mn.cpp
mn.cpp
README.md
Practical Lab Assignment - Control Structures - Loop/Switch
Program to calculate sum of numbers from m to n.
Hint: Input two numbers m and n. Find sum of all numbers from m to n. For example m=3 and n=8 then sum will be 3 + 4 + 5 + 6 + 7 + 8 = 33.
Program to print Fibonacci series up to 100.
Hint: Fibonacci Series is 1, 1, 2, 3, 5, 8, 13, 21, ....
Program to input a number and then calculate sum of its digits.
Hint: let number = 562. Then you should print 5 + 6 + 2 = 13.
Program to find whether given number is a prime number or not.
Program to display sum of series 1 + 1/2 + 1/3 + ... + 1/n.
Program to display series and find sum of 1 + 3 + 5 + ... + n.
Program to use switch statement. Display Monday to Sunday.
Program to display arithmetic operator using switch case
Back
|
FazBrowse Home
|
New Git URL