Skip to content

Commit

Permalink
Merge pull request #263 from Z0Marlin/revstr
Browse files Browse the repository at this point in the history
Reverse String
  • Loading branch information
sbshah97 authored Oct 4, 2017
2 parents 6dc2fcb + 03de651 commit 8752ae2
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
6 changes: 6 additions & 0 deletions BITWISE_operators/Z0Marlin.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include<stdio.h>
int main(){
int a,b;
scanf("%d%d",&a,&b);
printf("a|b = %d\na&b = %d\na<<b = %d\na>>b = %d\n~a = %d\n",a|b,a&b,a<<b,a>>b,~a);
}
6 changes: 6 additions & 0 deletions Participants/aditya-jain.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Name: Aditya Jain
GitHub Username: Z0Marlin
Degree and Year: 1st Year, B. Tech
Department: Information Technology

Interests: Anime and Hacking ;)
1 change: 1 addition & 0 deletions Python/Z0Marlin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print("Hello World!")
14 changes: 14 additions & 0 deletions Reverse_String/Z0Marlin.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#include<stdio.h>
#include<string.h>
int main(){
char a[50],t;
int i,n;
printf("Input String : ");
n=(scanf("%[^\n]%*c",a),strlen(a));
for(i=0;i<n/2;i++){
t=a[i];
a[i]=a[n-1-i];
a[n-1-i]=t;
}
printf("%s\n",a);
}

0 comments on commit 8752ae2

Please sign in to comment.