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);

Program 3 Electric Circuit


#include<stdio.h>
#include<conio.h>
void main()
{
float l,r,feq,c;
clrscr();
printf("enter value of L:");
scanf("%f",&l);
printf("enter value of R:");
scanf("%f",&r);

Program 2 Inventory Management



#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
long int dr,sc,hc,a,b,eoq,tbo;
clrscr();
printf("enter value of Demand rate");
scanf("%ld",&dr);

Program 1 Distance Travelled


#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
float U,A,T,distance,a,b;
clrscr();
printf("enter value of U:-");

Program 10 Check Character, Number or Digit


#include<stdio.h>
#include<conio.h>
void main()
{
char ch;
clrscr();
printf("enter value of charecter:");
scanf("%c",&ch);
if(ch>=65&&ch<=90)
{
printf("this is capital letter alphabet");

Program 5 Create Simple Calculator


#include<stdio.h>
#include<conio.h>
void main()
{
int c,a,b,ch;
clrscr();
printf("Enter number of a A=");
scanf("%d",&a);
printf("Enter number of a B=");
scanf("%d",&b);
printf("\t1.Addition\n\t2.substraction\n\t3.multiplication\n\t4.devesion\n");