#include<stdio.h>
#include<conio.h>
void main ( )
{
int a =15,
b=5,c,d ;
clrscr( ) ;
c=a+b ;
d=b-a ;
printf("the
sum =%d and substraction=%d",c,d) ;
getch( );
}
#include<stdio.h>
#include<conio.h>
void main ( )
{
int
a,b,c,d,e,f ;
clrscr( ) ;
a=15 ;
b=5 ;
c=a+b ;
d=a-b ;
e=a*b ;
f=a/b ;
printf("the
sum =%d",c) ;
printf("\n
the substraction=%d",d) ;
printf
("\n the multification=%d",e) ;
printf("\n
the division=%d",f) ;
getch( );
}
#include<stdio.h>
#include<conio.h>
void main( )
{
int
a,b,c,d,e,f ;
clrscr( ) ;
printf("give
a number:") ;
scanf("%d",
&a) ;
printf
("give another number:") ;
scanf("%d",&b)
;
c=a+b ;
d=a-b ;
e=a*b ;
f=a/b ;
printf("the
sum =%d",c) ;
printf
("\n the substraction=%d",d) ;
printf("\n
the multifiction =%d",e) ;
printf("\n
the division =%d",f) ;
getch ( );
}
#include<stdio.h>
#include<conio.h>
void main( )
{
int
a,b,c,d,e,f,g ;
clrscr();
printf("give
the 1stno:") ;
scanf("%d",&a)
;
printf("give
the 2nd no:") ;
scanf("%d",&b)
;
printf("give
the 3rd no:") ;
scanf("%d",&c)
;
printf("give
the 4th no:") ;
scanf("%d",&d);
printf("give
the 5th no:") ;
scanf("%d",&e)
;
printf("give
the 6th no:") ;
scanf("%d",&f)
;
g=((a+b-c)*(d+e)/f)
;
printf("the
simplication=%d",g) ;
getch() ;
}
#include<stdio.h>
#include<conio.h>
void main( )
{
int a,b,d ;
clrscr( );
printf("give
the 1st no:") ;
scanf("%d",&a)
;
printf("give
2nd no:") ;
scanf("%d",&b)
;
d=a*b+b ;
printf("simplication=%d",d)
;
getch( ) ;
}
#include<stdio.h>
#include<conio.h>
void main( )
{
int
a,b,c,d,e ;
clrscr() ;
printf("give
a ammount") ;
scanf("%d",&a)
;
printf("give
a interest:") ;
scanf("%d",&b)
;
printf("give
a year:") ;
scanf("%d",&c)
;
d=(a*b*c)/100
;
e=d+a ;
printf("Total
interst%d\n total Ammout%d",d,e) ;
getch() ;
}
#include<stdio.h>
#include<conio.h>
void main( )
{
float
a,b,c,d,e,f ;
clrscr() ;
a=5.5 ;
b=2.5 ;
c=a+b ;
d=a-b ;
e=a*b ;
f=a/b ;
printf("the
sum=%f",c) ;
printf("\n
the substraction=%f",d) ;
printf("\n
the multification=%f",e) ;
printf("\n
the division=%f",f) ;
getch( ) ;
}
#include<stdio.h>
#include<conio.h>
void main( )
{
float
a,b,c,d,e,f,g ;
clrscr( ) ;
printf("give
the 1st no:") ;
scanf("%f",&
a) ;
printf("give
the 2nd no:") ;
scanf("%f",&
b) ;
printf("give
the 3rd no:") ;
scanf("%f",&
c) ;
printf("give
the 4th no:") ;
scanf("%f",&
d) ;
printf("give
the 5th no:") ;
scanf("%f",&
e) ;
printf("give
the 6th no:") ;
scanf("%f",&
f) ;
g=((a+b-c)*(d+e)/f)
;
printf("the
simpufication=%f",g) ;
getch( ) ;
}
#include<stdio.h>
#include<conio.h>
void main( )
{
float a,b,d ;
clrscr() ;
printf("give
the 1st no:") ;
scanf("%f",&a)
;
printf("give
the last no:") ;
scanf("%f",&b)
;
d=a*b+b ;
printf("the
simplication=%f",d) ;
getch( );
}
#include<stdio.h>
#include<conio.h>
void main( )
{
float
a,c,g=0 ;
clrscr( ) ;
printf("give
the limit:") ;
scanf("%f",&c)
;
for(a=1.5;a<=c;a++)
g=g+a ;
printf("the
simplication=%f",g) ;
getch( ) ;
}
#include<stdio.h>
#include<conio.h>
void main( )
{
int a,s=0,p ;
clrscr( ) ;
printf("give
the limit:") ;
scanf("%d",&p)
;
for(a=4;a<=p;a++)
{
s=s+a ;
}
printf("sum
of the series=%d",s) ;
getch( ) ;
}
#include<stdio.h>
#include<conio.h>
void main( )
{
int
a,b=0,c,d ;
clrscr() ;
printf("give
the number:") ;
scanf("%d",&c)
;
printf("give
the limit:") ;
scanf("%d",&d)
;
for(a=c;a<=d;a++)
{
b=b+a ;
}
printf("the
simplication=%d",b) ;
getch( ) ;
}
#include<stdio.h>
#include<conio.h>
void main( )
{
int a,b,c,I ;
clrscr() ;
printf("input
the no:=") ;
scanf("%d",&a)
;
printf("give
the limit=") ;
scanf("%d",&b)
;
for(i=1;i<=b;i++)
{
c=a*I ;
printf("\n%d*%d=%d",a,i,c)
;
}
getch( ) ;
}
#include<stdio.h>
#include<conio.h>
void main( )
{
int a,c=0,b ;
clrscr() ;
printf("give
the limit:") ;
scanf("%d",&b)
;
for(a=4;a<=b;a++)
{
c=c+a ;
}
printf("sum
of the series=%d",c) ;
getch( ) ;
}
#include<stdio.h>
#include<conio.h>
void main()
{
float a,s=0;
clrscr();
for(a=1.5;a<=9.5;a++)
{
s=s+a ;
}
printf("sum
of the series=%f",s) ;
getch( ) ;
}
#include<stdio.h>
#include<conio.h>
void main( )
{
float
a,c=0,b ;
clrscr( ) ;
printf("give
the limit:") ;
scanf("%f",&b)
;
for(a=1.5;a<=b;a++)
{
c=c+a ;
}
printf("sum
of the series=%f",c) ;
getch( );
}
#include<stdio.h>
#include<conio.h>
void main( )
{
float
a,s=0,sbs ;
clrscr( ) ;
printf("give
the limit:=") ;
scanf("%f",&sbs)
;
for(a=5.5;a>=sbs;a--)
{
s=s+a ;
}
printf("sum
of the series=%f",s) ;
getch( ) ;
}
#include<iostream.h>
#include<math.h>
#include<conio.h>
void main( )
{
float afloat
;
clrscr( );
cout<<"input
a float number:" ;
cin>>afloat
;
afloat=sqrt(afloat)
;
cout.precision(2)
;
cout<<"\r"
;
cout<<afloat
;
getch( ) ;
}
#include<stdio.h>
#include<conio.h>
void main( )
{
int
a,b,c,d,e,f ;
clrscr( ) ;
printf("give
the 1st &2nd number:") ;
scanf("%d%d",&a,&b)
;
printf("give
the 3rd &4th number:") ;
scanf("%d%d",&c,&d)
;
e=a+c ;
f=b+d ;
printf("total
1st+3rd,2nd+4th no=%d %d",e,f) ;
getch( ) ;
}
#include<stdio.h>
#include<conio.h>
void main( )
{
float
a,c=0,b ;
clrscr() ;
printf("give
the limit:") ;
scanf("%f",&b)
;
for(a=5.5;a>=b;a--)
{
c=c+a ;
}
printf("sum
of the series=%f",c) ;
getch( ) ;
}
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main( )
{
int a,c=0,n ;
clrscr( ) ;
for(a=1;a<=5;a++)
{
n=pow(a,2) ;
c=c+n ;
}
printf("sum
of the series=%d",c) ;
getch( ) ;
}
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main( )
{
int
a=5,b=2,c=0,e,f=0;
clrscr( ) ;
c=c+1 ;
a=a+c ;
b=b+c ;
e=pow(a,b) ;
a=a+e ;
b=b+2 ;
f=f+e ;
printf("sum
of the series;%d,%d,%d",f,b,a) ;
getch( ) ;
}
#include<stdio.h>
#include<conio.h>
void main( )
{
char a;
clrscr( );
printf("give the
letter") ;
scanf("%c",&a)
;
printf("you have
given:%c",a) ;
getch( ) ;
}
#include<stdio.h>
#include<conio.h>
void main( )
{
int d,e,f ;
clrscr( ) ;
printf("give the
3number:") ;
scanf("%d,%d,%d",&d,&e,&f)
;
clrscr( ) ;
printf("you have
given:%d,%d,%d",d,f,e) ;
getch( ) ;
}
#include<stdio.h>
#include<conio.h>
void main( )
{
char d,e,f ;
clrscr( ) ;
printf("give
3letters:") ;
scanf("%c,%c,%c",&d,&e,&f)
;
clrscr( ) ;
printf("you have
given:%c,%c,%c",d,e,f) ;
getch( ) ;
}
#include<stdio.h>
#include<conio.h>
void main( )
{
char
m,e,l,a,g,h,t,r,f,c ;
clrscr( ) ;
printf("give the
name meghalayar:----") ;
scanf("%c%c%c%c%c%c%c%c%c%c",&m,&e,&l,&a,&g,&h,&t,&r,&f,&c)
;
printf("you have
given:%c%c%c%c%c%c%c%c",m,e,h,g,l,a,g,c) ;
getch( ) ;
}
#include<iostream.h>
#include<conio.h>
void main( )
{
int m,k ;
clrscr( ) ;
for(int i=0;i<3;i++)
{
cout<<"\n
enter an integer:" ;
cin>>m ;
k=m+I ;
cout<<"you
have entered"
<<i<<"+"<<m<<"number"<<"="<<k
;
}
getch( ) ;
}
#include<stdio.h>
#include<conio.h>
void main( )
{
char p[20],q[20] ;
clrscr( ) ;
printf("give a
name:") ;
scanf("%s",&p)
;
printf("give a
another name:") ;
scanf("%s",&q)
;
printf("you have
typed a name %s,%s",p,q) ;
getch( ) ;
}
#include<stdio.h>
#include<conio.h>
void main( )
{
char a[25] ;
clrscr( ) ;
printf("enter a
name with sur name:") ;
gets(a) ;
printf("name=%s",a)
;
getch( ) ;
}
#include<stdio.h>
#include<conio.h>
void main( )
{
char a[25],b[20] ;
clrscr( ) ;
printf("enter a
name with sur name:") ;
scanf("%s",&a)
;
gets(b) ;
printf("\n 1st
name=%s",a) ;
printf("\n sur
name=%s",b) ;
getch( ) ;
}
#include<iostream.h>
#include<conio.h>
void main( )
{
char
ch_array[8]="january" ;
clrscr( ) ;
cout<<ch_array[0]<<"\n"
;
cout<<ch_array[1]<<"\n"
;
cout<<ch_array[2]<<"\n"
;
cout<<ch_array[3]<<"\n"
;
cout<<ch_array[1]<<"\n"
;
cout<<ch_array[5]<<"\n"
;
cout<<ch_array[6]<<"\n"
;
getch( ) ;
}
#include<stdio.h>
#include<conio.h>
void main( )
{
char
a[20],b[20],c[20],d[20] ;
clrscr( ) ;
printf("enter your
name with sur name:") ;
scanf("%s%s",&a,&b)
;
printf("enter
another name with sur name:") ;
scanf("%s%s",&c,&d)
;
printf("the two
friends are %s%s and %s%s",a,b,c,d) ;
getch( ) ;
}
#include<stdio.h>
#include<conio.h>
void main( )
{
int a,b ;
clrscr( ) ;
printf("give the
year of the number volue:") ;
scanf("%d",&a)
;
b=a%4 ;
if(b==0)
printf("%d is a
leap year",a) ;
else
printf("%d is not
a leap year",a) ;
getch( ) ;
}
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main( )
{
char a[20],b[20] ;
int c ;
clrscr( ) ;
printf("enter a
name:") ;
scanf("%s",&a)
;
printf("enter
another name:") ;
scanf("%s",&b)
;
c=stricmp(a,b) ;
if(c==0)
printf("both are
same:") ;
else
printf("both are
not same:") ;
getch( ) ;
}
#include<stdio.h>
#include<conio.h>
void main( )
{
int a,b,c ;
clrscr( ) ;
printf("enter the 1st number:") ;
scanf("%d",&a) ;
printf("enter the 2nd number:") ;
scanf("%d",&b) ;
printf("enter the 3rd number:") ;
scanf("%d",&c) ;
if(a>b&&a>c)
printf("the largest number is %d",a) ;
else
if(b>a&&b>c)
printf("the largest number is %d",b) ;
else
if(c>a&&c>a)
printf("the largest number is %d",c) ;
getch( ) ;
}
#include<stdio.h>
#include<conio.h>
void main( )
{
auto int i=8 ;
clrscr( ) ;
{
auto int i=7 ;
{
auto int i=9 ;
printf("%d",i)
;
}
printf("%d",i)
;
}
printf("%d",i)
;
getch( ) ;
}
#include<stdio.h>
#include<conio.h>
void main( )
{
int a,b ;
float avg ;
char n[20] ;
clrscr( ) ;
printf("give the
name:") ;
scanf("%s",&n)
;
printf("give the
marks:") ;
scanf("%d",&a)
;
printf("give the
subjects:") ;
scanf("%d",&b)
;
clrscr( ) ;
avg=a/b ;
if(avg>=80)
{
printf("letter
marks:") ;
}

{
printf("1st
division") ;
}
if(avg>=45&&avg<60)
{
printf("2nd
division") ;
}
if(avg>=30&&avg<45)
{
printf("3rd
division");
}
if(avg<30)
{
printf("fail")
;
}
getch( ) ;
}

#include<stdio.h>
#include<conio.h>
void main( )
{
int a,b,c,d,e ;
float avg ;
clrscr( ) ;
printf("enter
marks of english:") ;
scanf("%d",&a)
;
printf("enter
marks of bengali:") ;
scanf("%d",&b)
;
printf("enter
marks of math:") ;
scanf("%d",&c)
;
printf("enter
marks of science:") ;
scanf("%d",&d)
;
printf("enter
marks of history:") ;
scanf("%d",&e)
;
avg=(a+b+c+d+e)/5 ;
if(avg>=60)

printf("1st
division") ;
}
if(avg>=45&&avg<60)
{
printf("2nd
division") ;
}
if(avg>=30&&avg<45)
{
printf("3rd
division") ;
}
if(avg<30)
{
printf("fail")
;
}
getch( ) ;
}

#include<conio.h>
void main( )
{
int a,b,c ;
clrscr( ) ;
printf("marks of the jhutan:") ;
scanf("%d",&a) ;
printf("marks of the samir:") ;
scanf("%d",&b) ;
printf("marks of the utpal:") ;
scanf("%d",&c) ;
if(a>=60)
printf("jhutan is 1st division student",a) ;
else
if(b>=60)
printf("samir is 1st division student",b) ;
else
if(c>=60)
printf("utpal is 1st division student",c) ;
getch( ) ;
}

#include<stdio.h>
#include<conio.h>
void main( )
{
int r,s ;
clrscr( ) ;
printf(:give the 1st
number:") ;
scanf("%d",&r)
;
printf("give the
2nd number:") ;
scanf("%d",&s)
;
if(r>=s)
printf("true")
;
else
if(r<=s)
printf("false")
;
getch( ) ;
}

#include<conio.h>
void main( )
{
int a,b,c ;
clrscr( ) ;
printf("give the
number:") ;
scanf("%d",&a)
;
printf("give the
number:") ;
scanf("%d",&b)
;
printf("givethe
number:") ;
scanf("%d",&c)
;
if(a>=b&&a>=c)
printf("give the
largest number is:%d",a) ;
if(b>=a&&c>=b)
printf("give the
largest number is:%d",b) ;
if(c>=a&&c>=b)
printf("give the
largest number is:%d",c) ;
getch( ) ;
}

#include<stdio.h>
#include<conio.h>
void main( )
{
Int r ;
clrscr( ) ;
printf("give the
roll number:") ;
scanf("%d",&r)
;
if(r>=1&&r<=45)
printf("your seet
has section A") ;
else
if(r>=46&&r<=90)
printf("your seet
has section B") ;
else
if(r>=91)
printf("your seet
has section C") ;
getch( ) ;
}

#include<iostream.h>
#include<conio.h>
void main( )
{
double fact=1
;
int y ;
cout<<"enter
an integer." ;
cin>>y
;
while(y>1)
{
fact=fact*y
;
y- - ;
}
cout<<”\n”<<”The
factorial is “<<fact;
getch( );
}
#include<stdio.h>
#include<conio.h>
void main( )
{
int c ;
char n[20] ;
clrscr( ) ;
printf(“give
a girl name:”) ;
Scanf(“%s”,&n)
;
printf(“give
a girl age:”) ;
scanf(“%d”,&c)
;
if(c<=34&&c>=18)
printf(“she
is deserving for merry”) ;
else
printf(“she
is deserving for merry”) ;
getch( ) ;
}
Click here for :>> Download
No comments:
Post a Comment