00:01
Hello students, so here is the first print n odd number.
00:05
So we have to first print the n odd number.
00:08
So algorithm for this is start a loop with i equal to 1.
00:11
Check if i is odd.
00:12
If i is odd, print i.
00:14
Increment by 1.
00:16
Repeat step 2 and 3 until i is less than or equal to n.
00:19
Stop the loop.
00:20
So here is the flowchart.
00:21
So start after that declare j equal to 1.
00:25
Then if j is odd, yes then print j and then increment in the j by i.
00:30
If there is j is not odd, then increment the j by 1.
00:36
After that we have to check if j is less than or equal to n.
00:39
If it is less than or equal to n, then we have to repeat the step.
00:45
Otherwise we will stop the execution.
00:48
So this is the stop of the execution.
00:51
Now calculate the total marks and percentage of any three subjects.
00:55
So here is the flowchart.
00:57
We have to here i have written the algorithm.
01:00
Start input the marks for the subject 1, subject 2 and subject 3.
01:04
Then we have to calculate the total marks.
01:06
After that we have to calculate the percentage.
01:09
Then after that print the result.
01:11
Print the percentage and stop.
01:14
And here is the flowchart.
01:15
So start input marks subject 1, subject 2 and subject 3.
01:18
After that calculate the total marks.
01:20
So by adding these three subjects, we calculate the total marks.
01:24
After that we have to calculate the percentage.
01:26
Total marks divided by 300 into 100.
01:28
This will give us the percentage.
01:29
Then after print the total marks and percentage and then stop.
01:33
So in this way we can draw the flowchart...