Print "Hello World" in C#
using System; namespace HelloWorldApp { class Hello { static void Main( string [] args) { ...
Hello guys, I am Dreek. In this blog, I will post programs in various languages which will be useful for students.
using System; namespace HelloWorldApp { class Hello { static void Main( string [] args) { ...
#include <stdio.h> #define N 100 void sort(int [],int); main() { int i,n; int a[N]; printf("Enter the size of the ar...
#include <stdio.h> #define N 100 void quicksort(int [],int,int); int partition(int [],int,int); main() { int i,n; int a[N]...
#include <stdio.h> int power(int,int); main() { int x,y,c; printf("Enter the value of x\n"); scanf("%d...
#include <stdio.h> #include<string.h> #define N 50 void STRING_MATCH(char t[],char p[]) { int tlen,plen,i,j,limit; pl...
#include <stdio.h> #include<math.h> void nqueen(int,int); int place(int,int); int x[10]; main() { int n; printf(...
#include <stdio.h> #define N 100 void mergesort(int [],int,int); void merge(int [],int,int,int); main() { int i,n; int a[N...
#include<stdio.h> typedef struct STR { int m[10][10]; int s[10][10]; }mat; void matrix_chain_order(int [],int); main() ...
#include<stdio.h> main() { int i,k,n; printf("Enter the size of the array\n"); scanf("%d",&n); in...
#include <stdio.h> #define N 100 void sort(int [],int); main() { int i,n; int a[n]; printf("Enter the size of the ar...
#include <stdio.h> #define N 100 void heapsort(int [],int); void heapify(int [],int,int); main() { int i,n; int a[N]; pr...
#include<stdio.h> #define N 20 void graph_colour(int); int is_safe(int); int adj[N][N],x[N],n,m; main() { int i,j; print...
#include<stdio.h> main() { int i,t,c,j,k,n; printf("Enter the size of the array\n"); scanf("%d",&n)...
!/bin/bash if [ -f $1 ] then echo " $1 File exist " else echo " File does not exist " fi
!/bin/bash echo " Enter the lenght of series " read n t1=0 t2=1 s=`expr $t1 + $t2` echo " $s " for((i=0;i<n...
!/bin/bash read -p "Enter a sentence " s a=$( echo $s | tr -cd 'AaEeIiOouU' | wc -c) echo " Number of vowels $...
!/bin/bash echo " Enter a number " read a echo " Enter another number " read b echo " Enter your choice 1....
GNU nano 2.9.3 prime !/bin/bash echo "Enter a number" read n for...
!/bin/bash echo "Enter a number" read n s=1 for((i=1;i<=n;i++)) do s=`expr $s \* $i` done echo "Factori...
!/bin/bash if [ $1 -gt $2 -a $1 -gt $3 ] then echo " $1 is largest " elif [ $2 -gt $3 ] then echo " $...