L01 Programming Fundamentals Introduction

#ece244

labs just like aps105

quiz 1 wednesday oct 1 2025 6 to 7 pm
quiz 2 thursday nov 6 2025 6 to 7:30 PM
all exams are computer-based

// lecture 1
# include <iostream> //inputting input/output and stream (sequence of chars)
using namespace std;
// trying to use a std (standard) namespace (i.e., container of names)
// names are sort of like object types
// if we didn't use this then cout would have to be std::cout

int main(void) {
	cout << "Hello world" << endl;
	cout << endl << "test?";
	// arrows are operation that signify that the string gets applied to cout?
	// endl is part of std, same as \n basically
	
	int num; // same as C
	cout << endl << "enter a number: " << endl;
	cin >> num;
	cout << "THe numbered entered is " << num << endl;
	return 0;
}

# include <iostream>
using namespace std;

int main(void) {
	int num1, num2;
	cout << "Enter two numbers: " << endl;
	cin >> num1 >> num2;
	cout << "The numbers entered are " << num1 << " and " << num2 << endl;
	return 0;
}