diff --git a/C/.gitignore b/C/.gitignore index d6b7ef3..c8a9d02 100644 --- a/C/.gitignore +++ b/C/.gitignore @@ -1,2 +1,2 @@ -* + !.gitignore diff --git a/C/195515.c b/C/195515.c new file mode 100644 index 0000000..e5690ee --- /dev/null +++ b/C/195515.c @@ -0,0 +1,8 @@ +#include +#include +int main() +{ + printf("Hello World"); + getch(); + return 0; +} diff --git a/C/195515.exe b/C/195515.exe new file mode 100644 index 0000000..3260b91 Binary files /dev/null and b/C/195515.exe differ diff --git a/C/195515a.c b/C/195515a.c new file mode 100644 index 0000000..7d0ac7c --- /dev/null +++ b/C/195515a.c @@ -0,0 +1,12 @@ +#include +#include +int main() +{ + int a,b,sum; + printf("enter two numbers:\n"); + scanf("%d%d",&a,&b); + sum=a+b; + printf("sum=%d",sum); + getch(); + return 0; +} diff --git a/C/195515a.exe b/C/195515a.exe new file mode 100644 index 0000000..6271cc4 Binary files /dev/null and b/C/195515a.exe differ diff --git a/C/195515b.c b/C/195515b.c new file mode 100644 index 0000000..3551ec0 --- /dev/null +++ b/C/195515b.c @@ -0,0 +1,12 @@ +#include +#include +int main() +{ + int a,b,sub; + printf("enter two numbers:\n"); + scanf("%d%d",&a,&b); + sub=a-b; + printf("sub=%d",sub); + getch(); + return 0; +} diff --git a/C/195515b.exe b/C/195515b.exe new file mode 100644 index 0000000..29436ef Binary files /dev/null and b/C/195515b.exe differ diff --git a/C/195515c.c b/C/195515c.c new file mode 100644 index 0000000..b6a0ea7 --- /dev/null +++ b/C/195515c.c @@ -0,0 +1,12 @@ +#include +#include +int main() +{ + int a,b,multiply; + printf("enter two numbers:\n"); + scanf("%d%d",&a,&b); + multiply=a*b; + printf("multiply=%d",multiply); + getch(); + return 0; +} diff --git a/C/195515c.exe b/C/195515c.exe new file mode 100644 index 0000000..47c3616 Binary files /dev/null and b/C/195515c.exe differ diff --git a/C/195515d.c b/C/195515d.c new file mode 100644 index 0000000..02ed40a --- /dev/null +++ b/C/195515d.c @@ -0,0 +1,15 @@ +#include +#include +int main() +{ + int a,mul=1,i; + printf("enter five numbers:\n"); + for(i=1;i<=5;i++); + { + scanf("%d",&a); + mul=mul*a; + } + printf("mul=%d",mul); + getch(); + return 0; +} diff --git a/C/195515d.exe b/C/195515d.exe new file mode 100644 index 0000000..6c3d3a8 Binary files /dev/null and b/C/195515d.exe differ diff --git a/C/a1.c b/C/a1.c new file mode 100644 index 0000000..0f43414 --- /dev/null +++ b/C/a1.c @@ -0,0 +1,13 @@ +#include +#include +void main() +{ + int a,b,temp; + printf("enter two nos.:\n"); + scanf("%d%d",&a,&b); + temp=a; + a=b; + b=temp; + printf(" the value of a is %d and b is %d",a,b); + +} diff --git a/C/a1.exe b/C/a1.exe new file mode 100644 index 0000000..cadff6d Binary files /dev/null and b/C/a1.exe differ diff --git a/C/project4.c b/C/project4.c new file mode 100644 index 0000000..10717bd --- /dev/null +++ b/C/project4.c @@ -0,0 +1,11 @@ +#include +#include +int main() +{ + int a,b,mean; + printf("enter two numbers:\n"); + scanf("%d%d",&a,&b); +mean=(a+b)/2; + printf("average=%d",mean); + return 0; +} diff --git a/C/project4.exe b/C/project4.exe new file mode 100644 index 0000000..008a140 Binary files /dev/null and b/C/project4.exe differ diff --git a/HacktoberFest2k19 b/HacktoberFest2k19 new file mode 160000 index 0000000..48ed83d --- /dev/null +++ b/HacktoberFest2k19 @@ -0,0 +1 @@ +Subproject commit 48ed83d87222a407a3c6544aebcd9abb95219abb