Skip to content

Instantly share code, notes, and snippets.

View IamLizu's full-sized avatar
:octocat:

S M Mahmudul Hasan IamLizu

:octocat:
View GitHub Profile
@IamLizu
IamLizu / array.c
Created January 26, 2018 13:15
Example of a simple array that contains integer value
#include<stdio.h>
int main()
{
int i,s, GivenArray[100];
printf("Enter the size of array : ");
scanf("%d",&s);
printf("Enter elements of the array...\n");
for(i=0;i<s;i++)
{
scanf("%d",&GivenArray[i]);
@IamLizu
IamLizu / add-two-integers.c
Last active January 20, 2018 08:37
C Program to add two integer
#include <stdio.h>
int main()
{
int firstNumber, secondNumber, sumOfTwoNumbers;
printf("Enter two integers: ");
scanf("%d %d", &firstNumber, &secondNumber);
sumOfTwoNumbers = firstNumber + secondNumber;
@IamLizu
IamLizu / hello-world.c
Last active January 13, 2018 11:39
A simple C program to display Hello World!
#include<stdio.h>
int main()
{
printf("Hello World!");
return 0;
}