Thursday, February 6, 2014
Tuesday, February 4, 2014
Tuesday, January 21, 2014
Write last 6 PHP Programs for File
<?php
$email="example@gmail.com";
echo "Domain: ". strstr($email,"@");
echo "<br>Username :". strstr($email,"@",true);
?>
NEXT PROGRAM :
<?php
$mobile ="+91723456789";
echo "<br>C Code :". substr($mobile,0,3);
echo "<br>M No :". substr($mobile,3);
?>
$email="example@gmail.com";
echo "Domain: ". strstr($email,"@");
echo "<br>Username :". strstr($email,"@",true);
?>
NEXT PROGRAM :
<?php
$mobile ="+91723456789";
echo "<br>C Code :". substr($mobile,0,3);
echo "<br>M No :". substr($mobile,3);
?>
Labels:
BCA Semester-4,
PHP
Saturday, January 4, 2014
First 4 Console Applications in VB.NET
Module Prog1
Sub Main()
Dim a, b As Integer
Dim ans As Decimal
Console.WriteLine("Enter First Value")
a = Console.ReadLine()
Console.WriteLine("Enter Sec Value")
b = Console.ReadLine()
ans = a + b
Console.WriteLine("Your Addition Ans = " & ans)
ans = a - b
Console.WriteLine("Your Subtract Ans = " & ans)
Sub Main()
Dim a, b As Integer
Dim ans As Decimal
Console.WriteLine("Enter First Value")
a = Console.ReadLine()
Console.WriteLine("Enter Sec Value")
b = Console.ReadLine()
ans = a + b
Console.WriteLine("Your Addition Ans = " & ans)
ans = a - b
Console.WriteLine("Your Subtract Ans = " & ans)
Labels:
BCA Semester-4,
VB.NET
Thursday, November 21, 2013
SelectionSort C Program (DFS)
#include<stdio.h>
#include<conio.h>
int main()
{
int s,i,j,temp,a[20];
printf("Enter total elements: ");
scanf("%d",&s);
#include<conio.h>
int main()
{
int s,i,j,temp,a[20];
printf("Enter total elements: ");
scanf("%d",&s);
Labels:
BCA Semester-3,
C-Programs,
DFS
HeapSort C Program (DFS)
#include<stdio.h>
#include<conio.h>
void build_Heap(int [],int);
void HeapSort(int H[],int n);
int main()
{
int arr[10],n,i;
printf("Enter the total number of array elements: ");
scanf("%d",&n);
#include<conio.h>
void build_Heap(int [],int);
void HeapSort(int H[],int n);
int main()
{
int arr[10],n,i;
printf("Enter the total number of array elements: ");
scanf("%d",&n);
Labels:
BCA Semester-3,
C-Programs,
DFS
InsertionSort C Program (DFS)
#include<stdio.h>
#include<conio.h>
int main()
{
int i,j,s,temp,a[20];
printf("Enter total elements: ");
scanf("%d",&s);
#include<conio.h>
int main()
{
int i,j,s,temp,a[20];
printf("Enter total elements: ");
scanf("%d",&s);
Labels:
BCA Semester-3,
C-Programs,
DFS
QuickSort C Program (DFS)
#include<stdio.h>
#include<conio.h>
void quicksort(int [10],int,int);
int main()
{
int x[20],size,i;
printf("Enter size of the array: ");
scanf("%d",&size);
#include<conio.h>
void quicksort(int [10],int,int);
int main()
{
int x[20],size,i;
printf("Enter size of the array: ");
scanf("%d",&size);
Labels:
BCA Semester-3,
C-Programs,
DFS
BubbleSort C Program (DFS)
#include<stdio.h>
#include<conio.h>
int main(){
int s,temp,i,j,a[20];
printf("Enter total numbers of elements: ");
scanf("%d",&s);
printf("Enter %d elements: ",s);
for(i=0;i<s;i++)
scanf("%d",&a[i]);
#include<conio.h>
int main(){
int s,temp,i,j,a[20];
printf("Enter total numbers of elements: ");
scanf("%d",&s);
printf("Enter %d elements: ",s);
for(i=0;i<s;i++)
scanf("%d",&a[i]);
Labels:
BCA Semester-3,
C-Programs,
DFS
Subscribe to:
Posts (Atom)
