Professional Documents
Culture Documents
OUTPUT:
25-E,Bharathiyar Nagar
m.c Road,thanjavur
Pincode:613004.
LAB TASK:01
DATE:12.2.15
AIM:
CODING:
#include<stdio.h>
#include<conio.h>
void main()
clrscr();
printf(“25-E,Bharathiyar Nagar\n”);
printf(“m.c Road,thanjavur\n”);
printf(“Pincode:613004\n”);
getch();
RESULT:
Does the program satisfies the aim of the task and executed
sucessfully.
DATE:21.1.15
AIM:
CODING:
#include<studio.h>
#include<conio.h>
void main()
int a,b,c,sum;
clrcsr();
scanf(“%d”,&a);
scanf(“%d”,&b);
scanf(“%d”,&c);
sum=a+b+c;
getch();
}
RESULT:
Does the program satisfies the aim of the task and executed
sucessfully.
DATE:10.2.15
AIM:
CODING:
#include<stdio.h>
#include<conio.h>
Void main()
int n,result;
clrscr();
scan f(“%d,&n);
result=nX(n+1)/2;
getch();
}
RESULT:
Does the program satisfies the aim of the task and executed
sucessfully.
DATE:10.2.15
AIM:
CODING:
#include<stdio.h>
#include<conio.h>
void main()
float pi=3.14;
int rad;
float result;
clrscr();
scanf(“%d”,&rad);
result=pi*rad*rad;
getch();
}
RESULT:
Does the program satisfies the aim of the task and executed
sucessfully.
DATE:3.3.15
AIM:
CODING:
#include<stdiuo.h>
#include<conio.h>
Void main()
int i;
clrscr();
printf(“Multilication Table\n”);
for(i=1;i<=10;i++)
Printf(“%d*%d=%d”,I,8,i*8);
Printf(“\n”);
getch();
}
RESULT:
Does the program satisfies the aim of the task and executed
sucessfully.
DATE:3.3.15
AIM:
CODING:
#include<stdio.h>
#include<conio.h>
Void main()
int i;
clrscr();
printf(“Even Number\n”);
for(i=1;i<=20;i++)
If(i%2==0)
Printf(“%d”,i);
Printf(“\n”);
getch();
}
RESULT:
Does the program satisfies the aim of the task and executed
successfully.
DATE:3.3.15
AIM:
CODING:
#include<stdio.h>
#include<conio.h>
Void main()
int i;
clrscr();
printf(“odd Number\n”);
for(i=1;i<=20;i++)
If(i%2!=0)
Printf(“%d”,i);
Printf(“\n”);
getch();
}
RESULT:
Does the program satisfies the aim of the task and executed
sucessfully.
OUTUT:
Enter the mark value:21
FAIL
LAB TASK:08
DATE:4.3.15
AIM:
CODING:
#include<stdio.h>
#include<conio.h>
Void main()
int mark;
clrscr();
scanf(“%d”,&mark);
if(mark>=35)
Clrscr();
Printf(“pass”);
else
Printf(“fail”);
}
getch();
RESULT:
Does the program satisfies the aim of the task and executed
sucessfully.
LAB TASK:09
DATE:4.3.15
AIM:
CODING:
#include<stdio.h>
#include<conio.h>
Void main()
int m1,m2,m3,m4,m5,total;
Float average;
clrscr();
scanf(“%d%d%d%d%d”,&m1,&m2,&m3,&m4,&m5);
total= m1+m2+m3+m4+m5;
average=total/5.0;
if(average>=90)
printf(“Distinction”);
Printf(“first class”);
else
Printf(“no grade”);
getch();
RESULT: Does the program satisfies the aim of the task and
executed sucessfully.
OUTPUT:
ENTER THE NUMBER:6
THE GIVEN NUMBER IS:POSITIVE
LAB TASK:10
DATE:4.3.15
AIM:
CODING:
#include<stdio.h>
#include<conio.h>
Void main()
int i;
clrscr();
scanf(“%d”,&i);
if(i>=0)
else
}
getch();
RESULT: Does the program satisfies the aim of the task and
executed sucessfully.
OUTPUT:
ENTER YOUR FIVE MARK:95
85
98
75
65
First class
LAB TASK:11
DATE:17.3.15
COMPUTING THE GRADE OF STUDENT BY USING NESTED IF
STRUCTURE.
AIM:
CODING:
#include<stdio.h>
#include<conio.h>
Void main()
{
int m1,m2,m3,m4,m5,total;
Float average;
clrscr();
printf(“Enter five marks\n”);
scanf(“%d%d%d%d%d”,&m1,&m2,&m3,&m4,&m5);
total= m1+m2+m3+m4+m5;
average=total/5.0;
if(m1>=35&&m2>=35&&m3>=35&&m4>=35&&m5>=35)
{
if(average>=90&&<=100)
printf(“Distinction”);
else if(average >=70&& average<=89)
Printf(“first class”);
else if(average>=60&&average<=69)
printf(“second class”);
else
printf(“third clasds”);
}
else
Printf(“no grade”);
getch();
}
RESULT: Does the program satisfies the aim of the task and
executed sucessfully.
OUTPUT:
ENTER A DIGIT:146
SUM OF DIGIT=11
LAB TASK:12
DATE:17.3.15
AIM:
CODING:
#include<stdio.h>
#include<conio.h>
Void main()
int n,sum=0,k;
clrscr();
printf(“Enter digit”);
scanf(“%d,”&n);
while(n>0)
k=n%10;
sum=sum+k
n=n/10;
getch();
}
RESULT: Does the program satisfies the aim of the task and
executed sucessfully.
OUTPUT:
Enter a&b value :15 8
Sum of a&b:23
Sub of a&b:7
mul of a&b:120
div of a&b:1
Do you want to continue?:N
LAB TASK:13
DATE:24.3.15
AIM:
CODING:
#include<stdio.h>
#include<conio.h>
Void main()
do
clrscr();
scanf(“%d%d,&a,&b);
c=a+b;
d=a-b;
e=a*b;
scanf(“%s”,&choice);
While (choice==’y’);
getch();
RESULT: Does the program satisfies the aim of the task and
executed sucessfully.
NAME:R.MAHESHWAR REGNO:14209008