Program 101: Square Shape using an asterisk C++ is the first programming language I learned in college. Here's an example of a program using C++ C++ Compiler: https://www.programiz.com/cpp-programming/online-compiler/ #include <iostream> using namespace std; int main() { int m,y,num; cout << "Please enter a number: "; cin>>num; //The size of square for(m=1; m<=num; m++){ for(y=1; y<=num; y++){ cout<<"*"; //asterisk to form a square } cout<<"\n"; //new line } return 0; } TriviaMOTO 101 1. Bjarne Stroustrup is the inventor of the C++ programming language 2. C++ built using C programming language 3. Difference between C and C++ because of "++". That's a fact because C++ is an increment over C (the increment operator). 4. C is procedural with no support for objects and classes while C++ is object-oriented.
1 comment
Python lang malakas., Pero yung ubuntu gawa sa c++ 🙈