Laboratory Report 14
Laboratory Report 14
LABORATORY REPORT
IN
COMPUTER FUNDAMENTALS AND
PROGRAMMING
PROCEDURE: Using for loop, create a program that will provide the following outputs:
a. b.
For letter A
#include <iostream>
#include <iomanip>
int main() {
return 0;
For letter B
#include <iostream>
int main() {
return 0;
CONCLUSION:
PROCEDURE: Using while loop, create a program that will provide the following outputs:
c. d.
For letter c
#include <iostream>
int spaceCount = 0; while (spaceCount < row - 1) { std::cout << " ";
++spaceCount;
++number;
++row;
return 0;
For letter D
#include <iostream>
++count;
++row;
return 0;
CONCLUSION:
PROCEDURE: Using do…while loop, create a program that will provide the following outputs:
e. f.
FOR LETTER E:
#include <iostream>
do {
int spaceCount = 0;
++spaceCount;
int number = 1;
++number;
return 0;
For letter F
#include <iostream>
do {
return 0;
CONCLUSION: