Sunday, September 23, 2012
Program 9 Co-Ordinates X and Y
#include<stdio.h>
#include<conio.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);
clrscr();
printf("enter value of X:");
scanf("%d",&x);
printf("enter value of Y:");
scanf("%d",&y);
Labels:
BCA Semester-1,
C-Programs
Program 8 Check Triangle or Not
#include<stdio.h>
#include<conio.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);
clrscr();
printf("enter value of first angel A:");
scanf("%f",&a);
printf("enter value of second angel B:");
scanf("%f",&b);
Labels:
BCA Semester-1,
C-Programs
Program 4 Display Price Table
#include<stdio.h>
#include<conio.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");
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();
}
Labels:
BCA Semester-1,
C-Programs
Program 6 Display Month Name
#include<stdio.h>
#include<conio.h>
#include<conio.h>
void main()
{
{
int m;
clrscr();
printf("enter number of a month");
scanf("%d",&m);
clrscr();
printf("enter number of a month");
scanf("%d",&m);
Labels:
BCA Semester-1,
C-Programs
Program 3 Electric Circuit
#include<stdio.h>
#include<conio.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);
clrscr();
printf("enter value of L:");
scanf("%f",&l);
printf("enter value of R:");
scanf("%f",&r);
Labels:
BCA Semester-1,
C-Programs
Program 2 Inventory Management
#include<stdio.h>
#include<conio.h>
#include<math.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);
clrscr();
printf("enter value of Demand rate");
scanf("%ld",&dr);
Labels:
BCA Semester-1,
C-Programs
Program 1 Distance Travelled
#include<stdio.h>
#include<conio.h>
#include<math.h>
#include<conio.h>
#include<math.h>
void main()
{
{
float U,A,T,distance,a,b;
clrscr();
printf("enter value of U:-");
clrscr();
printf("enter value of U:-");
Labels:
BCA Semester-1,
C-Programs
Program 10 Check Character, Number or Digit
#include<stdio.h>
#include<conio.h>
#include<conio.h>
void main()
{
char ch;
clrscr();
printf("enter value of charecter:");
scanf("%c",&ch);
clrscr();
printf("enter value of charecter:");
scanf("%c",&ch);
if(ch>=65&&ch<=90)
{
{
printf("this is capital letter alphabet");
Labels:
BCA Semester-1,
C-Programs
Program 5 Create Simple Calculator
#include<stdio.h>
#include<conio.h>
#include<conio.h>
void main()
{
{
int c,a,b,ch;
clrscr();
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");
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");
Labels:
BCA Semester-1,
C-Programs
Subscribe to:
Posts (Atom)