diff --git a/asp/asp.cbp b/asp/asp.cbp new file mode 100644 index 0000000..04c2bb4 --- /dev/null +++ b/asp/asp.cbp @@ -0,0 +1,44 @@ + + + + + + diff --git a/asp/asp.depend b/asp/asp.depend new file mode 100644 index 0000000..407132d --- /dev/null +++ b/asp/asp.depend @@ -0,0 +1,7 @@ +# depslib dependency file v1.0 +1581346914 source:c:\users\dell\desktop\c programs\asp\main.c + + + + + diff --git a/asp/asp.layout b/asp/asp.layout new file mode 100644 index 0000000..427ccb5 --- /dev/null +++ b/asp/asp.layout @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/asp/main.c b/asp/main.c new file mode 100644 index 0000000..777cc49 --- /dev/null +++ b/asp/main.c @@ -0,0 +1,27 @@ +#include +#include +#include +#include + +int main() +{ + char ch; + char s[1000]; + char sen[1000000]; + char temp1,temp2; + + + +scanf("%c",&ch); +scanf("%c",&temp1); +scanf("%s",s); +scanf("%c",&temp2); +scanf("%[^\n]%*c",sen); + +printf("%c\n",ch); +printf("%s\n",s); +printf("%s\n",sen); + /* Enter your code here. Read input from STDIN. Print output to STDOUT */ + return 0; +} + diff --git a/assignment 1/assignment 1.cbp b/assignment 1/assignment 1.cbp new file mode 100644 index 0000000..c3f8b29 --- /dev/null +++ b/assignment 1/assignment 1.cbp @@ -0,0 +1,43 @@ + + + + + + diff --git a/assignment 1/assignment 1.depend b/assignment 1/assignment 1.depend new file mode 100644 index 0000000..765d71f --- /dev/null +++ b/assignment 1/assignment 1.depend @@ -0,0 +1,5 @@ +# depslib dependency file v1.0 +1581343564 source:c:\users\dell\desktop\c programs\assignment 1\main.c + + + diff --git a/assignment 1/assignment 1.layout b/assignment 1/assignment 1.layout new file mode 100644 index 0000000..3e8320f --- /dev/null +++ b/assignment 1/assignment 1.layout @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/assignment 1/main.c b/assignment 1/main.c new file mode 100644 index 0000000..d85b78d --- /dev/null +++ b/assignment 1/main.c @@ -0,0 +1,15 @@ +#include +#include + +int main() +{ + int a,b; + printf("enter two numbers"); + scanf("%d%d",&a,&b); + printf("the sum of two numbers=%d\n",a+b); + printf("the difference of two numbers=%d\n",a-b); + printf("the product of two numbers=%d\n",a*b); + printf("the quotient of two numbers=%d",a/b); + + +} diff --git a/assignment 2/assignment 2.cbp b/assignment 2/assignment 2.cbp new file mode 100644 index 0000000..2e198e5 --- /dev/null +++ b/assignment 2/assignment 2.cbp @@ -0,0 +1,43 @@ + + + + + + diff --git a/assignment 2/assignment 2.depend b/assignment 2/assignment 2.depend new file mode 100644 index 0000000..0cdc629 --- /dev/null +++ b/assignment 2/assignment 2.depend @@ -0,0 +1,5 @@ +# depslib dependency file v1.0 +1581259964 source:c:\users\dell\desktop\c programs\assignment 2\main.c + + + diff --git a/assignment 2/main.c b/assignment 2/main.c new file mode 100644 index 0000000..ae0aa59 --- /dev/null +++ b/assignment 2/main.c @@ -0,0 +1,14 @@ +#include +#include + +int main() +{ + float l,b; + printf("enter length="); + scanf("%f",&l); + printf("enter breadth="); + scanf("%f",&b); + printf("area of given rectangle=%f\n",l*b); + printf("perimeter of given rectangle=%f\n",2*(l+b)); + +} diff --git a/assignment 3/assignment 3.cbp b/assignment 3/assignment 3.cbp new file mode 100644 index 0000000..875e131 --- /dev/null +++ b/assignment 3/assignment 3.cbp @@ -0,0 +1,43 @@ + + + + + + diff --git a/assignment 3/assignment 3.depend b/assignment 3/assignment 3.depend new file mode 100644 index 0000000..3b2b6de --- /dev/null +++ b/assignment 3/assignment 3.depend @@ -0,0 +1,5 @@ +# depslib dependency file v1.0 +1584772732 source:c:\users\dell\desktop\c programs\assignment 3\main.c + + + diff --git a/assignment 3/assignment 3.layout b/assignment 3/assignment 3.layout new file mode 100644 index 0000000..ff4561c --- /dev/null +++ b/assignment 3/assignment 3.layout @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/assignment 3/main.c b/assignment 3/main.c new file mode 100644 index 0000000..4240f62 --- /dev/null +++ b/assignment 3/main.c @@ -0,0 +1,140 @@ +#include +#include + +/*int main(){ + float a,b,c ; + float d,i,j; + printf("let quadratic eqn is of form ax^2 + bx +c then enter a="); + scanf("%f",&a); + printf("enter b="); + scanf("%f",&b); + printf("enter c="); + scanf("%f",&c); + d=b*b-4*a*c; + i=sqrt(d); + j=sqrt(-d); + if (a==0){ + printf("The given eqn is not quadratic "); + } + if(a!=0&&d>0){ + printf ("the roots are real and unequal %f\t \a %f\n",(-b+i)/(2*a),(-b-i)/(2*a)); + } + else if (a!=0&&d==0){printf("roots are equal and are = %f\n\a",-b/(2*a));} + else if (a!=0&&d<0){ + printf(" roots are imaginary \n "); + printf("first root is R1 =%f+i%f\n",-b/(2*a),j/(2*a)); + printf("second root is R2= %f-i%f\n",-b/(2*a),j/(2*a)); + + } +} + + +// program no. 2 +/*int main() +{ + int x,y,z; + printf("enter three numbers"); + scanf("%d%d%d",&x,&y,&z); + int j; + j=(x>y?y>z?x:y:z); + printf("%d",j); +} + +//program no. 3 + + int main() + { + int a; + printf("Enter the number to be checked \t"); + scanf("%d",&a); + if(a%2==0) + { + printf("%d is even",a); + + } + else{ + printf("%d is odd",a); + } + }*/ + + +/* int main(){ + int a; + printf("Enter the number to be checked \t"); + scanf("%d",&a); + if (a>0){ + printf("%d is positive ",a); + } + else if (a==0) + { + printf("the number entred is zero"); + } + else { + printf("%d is negative",a); + } + }*/ + +/* int main(){ + int a,b; + printf(" Enter the two numbers"); + scanf("%d%d",&a,&b); + if (a>b){ + printf("%d is greater than %d",a,b); + } + else { + printf("%d is greater than %d",b,a); + + } + }*/ + +/* int main() + { + int a,b,c; + printf("enter the three numbers\t"); + scanf("%d%d%d",&a,&b,&c); + if (a>b&&a>c) + printf("%d is the greatest",a); + else if (ac) + printf("%d is the greatest",b); + else if (c>b&&c>b) + printf("%d is the greatest",c); + + + }*/ + + + + +int main(){ + int x; +scanf("%d",&x); +if(x==1){ + printf("one"); +} +else if(x==2){ + printf("two"); +}else if(x==3){ + printf("three"); +}else if(x==4){ + printf("four"); +}else if(x==5){ + printf("five"); +}else if(x==6){ + printf("six"); +}else if(x==7){ + printf("seven"); +}else if(x==8){ + printf("eight"); +}else if(x==9){ + printf("nine"); +} +else if (x>9){ + printf("Greater than 9"); +} + return 0; + +} + + + + diff --git a/assignment 3/main.exe b/assignment 3/main.exe new file mode 100644 index 0000000..f0381bc Binary files /dev/null and b/assignment 3/main.exe differ diff --git a/assignment 3/main.o b/assignment 3/main.o new file mode 100644 index 0000000..6e49768 Binary files /dev/null and b/assignment 3/main.o differ diff --git a/hello_world/hello_world.cbp b/hello_world/hello_world.cbp new file mode 100644 index 0000000..ec3ae02 --- /dev/null +++ b/hello_world/hello_world.cbp @@ -0,0 +1,43 @@ + + + + + + diff --git a/hello_world/hello_world.layout b/hello_world/hello_world.layout new file mode 100644 index 0000000..3165c1a --- /dev/null +++ b/hello_world/hello_world.layout @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/hello_world/main.c b/hello_world/main.c new file mode 100644 index 0000000..022b16e --- /dev/null +++ b/hello_world/main.c @@ -0,0 +1,8 @@ +#include +#include + +int main() +{ + printf("Hello world!\n"); + return 0; +} diff --git a/index22.html b/index22.html new file mode 100644 index 0000000..8f3663e --- /dev/null +++ b/index22.html @@ -0,0 +1,83 @@ +
+ + +
+

<<<<< RESIZE ME!!!! priyanshu

LOOK @ MY other Template codepen.io/studio-klik-hr/pen/rnHyB

+ + +
+ +
+
+
+
+

+ LOOK @ MY other Template codepen.io/studio-klik-hr/pen/rnHyB

+
+ +
+

This was posted on the 25nd of October 2013 by Studio Klik

+
+ + +

I asked an angel to guard you as you sleep, the angel replied and said angels don't guard angels, besides she's an higher angel. Love you my angel of angels.

+

'I' stopped to pick a meaning of 'LOVE'. Just then,a paper dropped inscribed 'YOU'. A voice whispered, you're the best meaning of love.

+

I asked an angel to guard you as you sleep, the angel replied and said angels don't guard angels, besides she's an higher angel. Love you my angel of angels.

+

'I' stopped to pick a meaning of 'LOVE'. Just then,a paper dropped inscribed 'YOU'. A voice whispered, you're the best meaning of love.

+
+ +
+ +
+
+

Header post

+
+ +
+

This was posted on the 25th of October 2013 by Studio Klik

+
+ + +

I asked an angel to guard you as you sleep, the angel replied and said angels don't guard angels, besides she's an higher angel. Love you my angel of angels.

+

'I' stopped to pick a meaning of 'LOVE'. Just then,a paper dropped inscribed 'YOU'. A voice whispered, you're the best meaning of love.

+

I asked an angel to guard you as you sleep, the angel replied and said angels don't guard angels, besides she's an higher angel. Love you my angel of angels.

+

'I' stopped to pick a meaning of 'LOVE'. Just then,a paper dropped inscribed 'YOU'. A voice whispered, you're the best meaning of love.

+
+ +
+
+ + + + + + +
+ + + +
diff --git a/instructions.txt b/instructions.txt index dee1c84..a3f4948 100644 --- a/instructions.txt +++ b/instructions.txt @@ -1,5 +1,13 @@ Here are the instructions: -Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin rhoncus id mauris eu faucibus. Nunc sed nibh eget tortor accumsan aliquam a nec felis. Suspendisse placerat, justo non volutpat tempus, dui metus cursus nisl, vel fringilla felis eros at augue. Morbi ultrices lorem eu est finibus, sed suscipit felis pretium. Fusce ac justo sollicitudin, euismod ante vitae, ultrices ipsum. Fusce risus enim, gravida venenatis maximus ac, cursus at lorem. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce laoreet fermentum tortor quis tincidunt. Sed lobortis et est ac condimentum. Nunc sed lectus in est placerat pharetra. Etiam facilisis a sem ac euismod. Phasellus sit amet rhoncus dui, at porttitor ex. Donec in gravida diam. Aenean tortor velit, lacinia non velit id, euismod vulputate magna. +i didn't understand a single word you wrote over there +so therefore i am changing it + +sorry if you feel hurt Please refer to the website for more instructions. + + +another change in case of both changes in local and remote + +change in sample 2 branch diff --git a/main.c b/main.c new file mode 100644 index 0000000..766b9a8 --- /dev/null +++ b/main.c @@ -0,0 +1,32 @@ +#include +int main(){ + float a,b,c ; + float d,i,j; + printf("let quadratic eqn is of form ax^2 + bx +c then enter a=\n"); + scanf("%f",&a); + printf("enter b="); + scanf("%f",&b); + printf("enter c="); + scanf("%f",&c); + d=b*b-4*a*c; + i=sqrt(d); + j=sqrt(-d); + if (a==0){ + printf("go and study maths stupid! "); + } + if(a!=0&&d>0){ + printf ("the roots are real and unequal R1= %f\n ,R2=%f\n",(-b+i)/(2*a),(-b-i)/(2*a)); + } + else if (a!=0&&d==0){printf("roots are equal and are R1= %f\n",-b/(2*a));} + else { + printf(" roots are imaginary \n "); + printf("first root is R1 =%f+i%f\n",-b/(2*a),j/(2*a)); + printf("second root is R2= %f-i%f\n",-b/(2*a),j/(2*a)); + + } +} + + + + + diff --git a/mid sem/main.c b/mid sem/main.c new file mode 100644 index 0000000..a9204a2 --- /dev/null +++ b/mid sem/main.c @@ -0,0 +1,8 @@ +#include +#include + +int main() +{int k=10; + printf(" %d %d %d",k==10,k=5,k>4); + return 0; +} diff --git a/mid sem/mid sem.cbp b/mid sem/mid sem.cbp new file mode 100644 index 0000000..a938499 --- /dev/null +++ b/mid sem/mid sem.cbp @@ -0,0 +1,43 @@ + + + + + + diff --git a/mid sem/mid sem.layout b/mid sem/mid sem.layout new file mode 100644 index 0000000..a665be7 --- /dev/null +++ b/mid sem/mid sem.layout @@ -0,0 +1,10 @@ + + + + + + + + + +