Skip to content

Instantly share code, notes, and snippets.

View qazi0's full-sized avatar
💭
(core dumped)

Siraj Qazi qazi0

💭
(core dumped)
View GitHub Profile
@qazi0
qazi0 / hello-detailed.c
Created July 23, 2020 07:52
Hello world (commented)
// Including the header file stdio.h
#include <stdio.h>
// Defining the main() function
int main()
{ // main() function opening brace
// To display some text on the screen, we use the printf() function from stdio.h file
printf(" Hello World! \n"); // The '\n' at the end means new line
@qazi0
qazi0 / hello.c
Last active July 23, 2020 06:10
Hello World in C
#include <stdio.h>
int main()
{
printf(" Hello World! \n");
return 0;
}
@qazi0
qazi0 / security.bat
Last active July 23, 2020 03:06
Introducing programming through a simple batch file
@echo off
cls
set /P name="What's your name? "
if %name% == Siraj goto success
cls
color 0c
echo Sorry Sir, you dont have authorization to proceed.
pause
exit
:success