Professional Documents
Culture Documents
PUTAS
PUTAS
PUTAS
Answer :
• FOR
The ‘for loop’ loops from 1 number to another number and increases by a specific value each time.
• WHILE
The ‘while loop’ can be used if you don’t know how many times a loop must run
• DO-WHILE
The ‘do-while loop’ do something first and then test if we have to continue. The result is that the loop
always runs once.
Answer :
A nested loop is a loop within a loop, an inner loop within the body of an outer one.
How this works is that the first pass of the outer loop triggers the inner loop, which
executes to completion. Then the second pass of the outer loop triggers the
inner loop again. This repeats until the outer loop finishes.
We are learning
DEC20012 - PROGRAMMING FUNDAMENTAL
DEC20012 - PROGRAMMING FUNDAMENTAL
DEC20012 - PROGRAMMING FUNDAMENTAL
DEC20012 - PROGRAMMING FUNDAMENTAL
DEC20012 - PROGRAMMING FUNDAMENTAL
Answer :
#________ <stdio.h>
int ______
{
int i=0;
printf(“We are learning\n”);
for (i = 1; i <= ____ ; i___)
{
printf( "___DEC20012 - PROGRAMMING FUNDAMENTAL\n");
}
return 0;
}
Answer (Output) :
Answer :
Build a C programming by using FOR Statement to shows the value of Current at R1, I R1 when Vdc
increase from 1V to 9V if R1 fixed = 5K
Answer (Flowchart) :
Answer (Source code) :
Answer (Output) :
Build a C programming by using WHILE Statement to shows the value of Current at R1, I R1 when Vdc
increase from 1V to 9V if R1 fixed = 5K
Answer (Flowchart ):
Answer (Sourcecode) :
Answer (Output) :
Discussion :
Conclusion