Assignment 03
Assignment 03
ASSIGNMENT NO: 2
Code:
int main()
{
// A comment , this is so you can read your program later.
// Anything after the // is ignored by C/C++/Java.
printf("I could have code like this.\n"); // and the comment after is ignored.
getch(); // or _getch()
return 0;
Output:
Task2:
Code:
#include<stdio.h>
int main() {
//This code will print my name initials "G M".
printf("*************************************************************
******************************\n");
printf("*************************************************************
****************************\n");
/*This code will print subjects and their relevent marks.*/
return 0;
}
Output:
Task3:
Code: //My name: "Ghulam Mustafa" and today is 6 Oct 2023
#include <iostream>
using namespace std;
int main()
{
// A comment , this is so you can read your program later.
// Anything after the // is ignored by C/C++/Java.
cout << "I could have code like this.\n"; // and the comment after is ignored.
getchar(); // or _getch()
return 0;
Code:
#include<iostream>
using namespace std;
int main() {
//This code will print my name initials "G M".
cout <<
"*****************************************************************************
**************\n";
cout <<
"*****************************************************************************
************\n";
/*This code will print subjects and their relevent marks.*/