Wednesday, October 31, 2012

WAP to Print FIBONACCI SERIES 1,1,2,3,5,8,13,21....


/* Fibonacci Series,1,1,2,3,5,8,13,21........*/
#include<stdio.h>
#include<conio.h>
void main()
{
int temp=0,i,n,a,b;
clrscr();
printf("\nEnter Number where you want to stop: ");

Friday, September 28, 2012

How to use Array Statement simple trick


#include<stdio.h>
#include<conio.h>
void main()
{
int i,a [5];
clrscr();
printf("Enter Velue");

for(i=0; a<=5; i++)
{
scanf("%d",&a[i]);
}

printf("Elements of Array");

for(i=0; a<=5; i++)
{
printf("\nA[i], %d",i, a[i]);
}
gethc();
}

Homework Define: Array 5-Times

Array is fixed size sequenced collection of elements of same type.

Note:
-Array is use to handle large amount of data
-Is collection of elements of same data type.

Syntax: How to declared Array Variable
data_type variable_name [size];
int a [5];
- It can be used with all the data type.
* float a [5];
* char a [5];
* double a [5];

- Index of Array always start from 0

Wednesday, September 26, 2012

Accountancy Assignment

Submission Date: 06/10/2012

Questions:

1. What are Final Account? State the object of preparing Final Account.
2. Page Number 324
    Illustration Number : 11, 12, 13, 14, 15, 16

Sunday, September 23, 2012

All C-Programs are Available

Assignment Submission Date 24/09/2012
(Program 7 is not have been declared)


Program 7

Program 9 Co-Ordinates X and Y


#include<stdio.h>
#include<conio.h>
void main()
{
int x,y;
clrscr();
printf("enter value of X:");
scanf("%d",&x);
printf("enter value of Y:");
scanf("%d",&y);

Program 8 Check Triangle or Not


#include<stdio.h>
#include<conio.h>
void main()
{
float a,b,c,A,d;
clrscr();
printf("enter value of first angel A:");
scanf("%f",&a);
printf("enter value of second angel B:");
scanf("%f",&b);

Program 4 Display Price Table



#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
printf("Name\t\tcode\t\t\tPrice\nFan\t\t 67831\t\t\t 1234.5\nmotor\t\t 450\t\t\t 5789.70");
getch();
}

Program 6 Display Month Name


#include<stdio.h>
#include<conio.h>
void main()
{
int m;
clrscr();
printf("enter number of a month");
scanf("%d",&m);