Thursday, October 31, 2019

What is c?

- C is a programming language developed at AT & T's Bell Laboratories of USA in 1972 by Dennis Ritchie.
- Any programming language can be divided into two categories
 * Problem oriented (High Level Language)
* Machine oriented (Low Level Language )
- But  C is considered as Middle Level Language 

Wednesday, October 30, 2019

Write a program to input the radius value from the keyboard and calculate the area of circle and print the result in both floating and exponential notation.
#include<stdio.h>
#include<conio.h>
void main()
{
int r;
float area;
clrscr();
printf("input the radius of circle");
scanf("%d",&r);
area=3.14*r*r;
printf("%f",area);
getch();
}
output
input the radius of circle7
153.86001
Write a program to demonstrate arithmetic operators.(+,-,*,/,%)
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c,d,e,f;
float g;
clrscr();
printf("input the a");
scanf("%d",&a);
printf("input the b");
scanf("%d",&b);
c=a+b;
d=a-b;
e=a*b;
f=a\b;
g=a%b;
printf("\n=%d",c);
printf("\n=%d",d);
printf("\n=%d",e);
printf("\n=%f",f);
printf("\n=%f",g);
getch();
Print the following formats.
****
***
**
*
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
clrscr();
for(i=4;i>1;i--)
{
for(j=;j<=i;j++)
printf("*");
printf("\n");
}
getch();
}
OUTPUT
****
***
**
*
Print the following formates.
                        1
                        12
                        123
                        1234
   #include<stdio.h>
  #include<conio.h>
 void main()
{
int i,j,num;
clrscr();
printf("input the number");
scanf("%d",&num);
for(i=1;<=num;i++)
{
for(j=1;j<=i-1;j++)
{
printf("%d",j);
}
printf("\n");
}
getch();
}














write a program to print "welcome to c programming" with different formats using escape sequences.

#include<stdio.h>
#include<conio.h>
Void main()
{
Printf("\" welcome to c programming \"" );
getch() ;

print sample strings like '' Hellow World''.

#include<stdio.h>
#include<conio.h>
Void main()
{
Printf(''Hellow World'' ) ;
getch() ;

Tuesday, October 29, 2019

Why do you join BCA?
ans:- (LIFE) ...............LEARN............MONEY.........BY PRIVATE JOB.......BY GOVERNMENT JOB.......BUSINESS.
Because no of employee has been increase in the field of government job but, croud of people are use in government job so i can't satisfy own family.I can satisfy family and freedom of life i.e be can join BCA.

2004 1.       A.   True or false:- 1.       The part of the computer that executes program instruction known as memory.- False 2.  ...