Assignment of Flow of Program - Flowcharts & Pseudocode - Video 02 [ Kunal Kushwaha ]
Create flowchart and pseudocode for the following:
1. Input a year and find whether it is a leap year or not.
Solution:
Flow Chart
Pseudocode
1. Start
2. Input year in type int
3. if year%4==0 and year%100!=0 or year%400==0:
output: Leap Year
else:
output: Non Leap Year
4. Stop
Solution:
Flow Chart
Pseudocode
1. Start
2. Input num1 & num2 in type int
3. sum=num1+num2
4. output: sum
5. Stop
3. Take a number as input and print the multiplication table for it.
Solution:
Flow Chart
Pseudocode
1. Start
2. Input num in type int
3. multiplier=1
while multiplier!=11:
output: num*multiplier
multiplier=multiplier+1
end while
5. Stop
Solution: Yet to do.
Flow Chart
Pseudocode
No comments:
Post a Comment