Skip to content

Instantly share code, notes, and snippets.

@LokeshKumarES
LokeshKumarES / helllo.html
Last active September 13, 2018 13:57
New pg
<html>
<body>
<h1>Hello World<h1>
</body>
</html>
@LokeshKumarES
LokeshKumarES / helllo_world.c
Created September 13, 2018 14:37
Write a C program to print hello world.
#include<stdio.h>
void main()
{
printf("Hello World\n");
printf("Welcome to EASTER SCIENCE");
getch();
}
@LokeshKumarES
LokeshKumarES / helllo_world.c
Created September 13, 2018 14:37
Write a C program to print hello world.
#include<stdio.h>
void main()
{
printf("Hello World\n");
printf("Welcome to EASTER SCIENCE");
getch();
}
@LokeshKumarES
LokeshKumarES / helllo_world.c
Created September 13, 2018 14:37
Write a C program to print hello world.
#include<stdio.h>
void main()
{
printf("Hello World\n");
printf("Welcome to EASTER SCIENCE");
getch();
}
@LokeshKumarES
LokeshKumarES / basic_calculator.c
Created September 13, 2018 14:43
2-Write a C program to perform basic functionality of calculator
#include<stdio.h>
#include<conio.h>
void main()
{
int a, b, add, sub, mul;
float div;
printf("Enter First Number: ");
scanf("%d",&a);
printf("Enter Second Number: ");
scanf("%d",&b);
@LokeshKumarES
LokeshKumarES / simple_interest.c
Created September 13, 2018 15:59
Write a C program to find the simple interest
#include<stdio.h>
#include<conio.h>
void main()
{
int p, t;
float si, r;
printf("Enter the principle: ");
scanf("%d", &p);
printf("Enter the rate: ");
scanf("%f", &r);
@LokeshKumarES
LokeshKumarES / circle_area.c
Created September 13, 2018 16:10
4-Write a C program to find the area of circle.
#include<stdio.h>
#include<conio.h>
void main()
{
int rad;
float pi=3.14, area;
printf("Enter the value of radius: ");
scanf("%d", &rad);
area=pi*rad*rad;
printf("The area of the circle is: %f", area);
@LokeshKumarES
LokeshKumarES / percentage_marks.c
Created September 13, 2018 16:16
Write a C program to find the sum and percentage of marks.
#include<stdio.h>
#include<conio.h>
void main()
{
int ma, en, ph, ch, cs;
float sum, per;
printf("Enter the marks of Maths= ");
scanf("%d", &ma);
printf("Enter the marks of English= ");
scanf("%d", &en);
@LokeshKumarES
LokeshKumarES / swap_two_numbers.c
Created September 13, 2018 16:23
Write a C program to swap the two numbers.
#include<stdio.h>
#include<conio.h>
void main()
{
int a, b , c;
printf("Enter the value of a: ");
scanf("%d", &a);
printf("Enter the value of b: ");
scanf("%d", &b);
c=a;
@LokeshKumarES
LokeshKumarES / swap_two_numbers_without_3rd_variable.c
Created September 13, 2018 16:27
Write a C program to swap the two numbers without using third variable.
#include<stdio.h>
#include<conio.h>
void main()
{
int a, b;
printf("Enter the value of a: ");
scanf("%d", &a);
printf("Enter the value of b: ");
scanf("%d", &b);
a=a+b;