32: W.A.P. to print table of 5 for first 10 iterations.
Please follow me for more practicals....
Program:
#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
for (int i = 1; i <= 10; i++)
{
printf("%d, ", i * 5);
}
getch();
}
Please follow me for more practicals....
Output:
5, 10, 15, 20, 25, 30, 35, 40, 45, 50,
Please follow me for more practicals....
Algorithm:
1.
START
2.
Declare i = 1.
3.
Repeat up-to step-5 until i <= 10.
4.
Display i * 5.
5.
i++.
6.
STOP.
Please follow me for more practicals....
Flowchart: