diff --git a/submissions/2019/ASC.CPP b/submissions/2019/ASC.CPP new file mode 100644 index 00000000..4c1063c5 --- /dev/null +++ b/submissions/2019/ASC.CPP @@ -0,0 +1,13 @@ +#include +#include +#include +void main() +{clrscr(); + int i; + char ch; + cout<<"Please put the value of a character"<>ch; + i=ch; + cout<<"The ASCII valur of the entered character is "< +#include +void sort(int a[],int x); +void main() + +{clrscr(); +int n=5,i,arr[10]; +for(i=0;i>arr[i]; +} +sort(arr,n); +getch(); +} + +void sort(int a[],int x) +{int i,j,temp=0; + +for(i=0;ia[j+1]) + { + temp=a[j]; + a[j]=a[j+1]; + a[j+1]=temp; + } + } +} +for(i=0;i +#include +#include +void main() +{ system("cls"); +char ch; +cout<<"please press any key"<>ch; +if(ch>='A'&& ch<='Z'||ch>='a' && ch<='z') +cout<<"entered key is an alphabet "<<"i.e "<='0'&& ch<='9') +cout<<"entered key is a digit i.e "< +#include +#include +void main() +{clrscr(); + int i,j; +cout<<"Please put the numbers for the comparison "<>i>>j; +if(i<'j') +{cout<<"The larger number is "<