Skip to content

Latest commit

 

History

History
38 lines (33 loc) · 1.11 KB

README.md

File metadata and controls

38 lines (33 loc) · 1.11 KB

Work in Repl.it

CodingBootcamps-Problem Solving Using C : Beginner level - Day 3 Hands-on Practice

This programs enhances problem solving skills using c for entry level students

Problem 1: Sum of Natural Numbers

You will be given a number 'N'. Your task is to calculate the sum of first N natural numbers(1 to N)
Example
input:
4
output:
10

Problem 2: Fibonacci Series

You will be given a positive integer 'n'. Your task is to print the first 'n' terms of the fibonacci series.
Example
input:
4
output:
0 1 1 2

Problem 3: Odd or Even

Check whether an integer is odd or even
Example
input:
5
output:
Odd

Problem 4: Print the given pattern

Your task here is to print half pyramid of stars.
Example
input:
3
output:
*
**
***