Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions GREATEST OF TWO NUMS.cpp → cpp/GREATEST OF TWO NUMS.cpp
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#include<stdio.h>
#include<conio.h>
void great (int a,int b)
{
if(a>b)
printf("\n A is greater Number.");
else
printf("\n B is greater Number.");
}
int main ()
{
int a,b;
printf("Enter two numbers:");
scanf(" %d %d", &a,&b);
great(a,b);
getch();
return 0;
}
#include<stdio.h>
#include<conio.h>
void great (int a,int b)
{
if(a>b)
printf("\n A is greater Number.");
else
printf("\n B is greater Number.");
}
int main ()
{
int a,b;
printf("Enter two numbers:");
scanf(" %d %d", &a,&b);
great(a,b);
getch();
return 0;
}
13 changes: 13 additions & 0 deletions python/check_palindrome.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

def check_palin(x):
k= x[::-1]
if(x==k):
return 1
else:
return 0
x=input("Enter a word")
out=check_palin(x)
if(out==1):
print(x," is a palindrome")
else:
print(x," is not a palindrome")