C.S.E. Lab Report 1 1
C.S.E. Lab Report 1 1
CODE :-
#include<stdio.h>
int main ()
return 0 ;
RESULT:-
Lab Task:-2. Write a C program to display your Id , name ,Dept Name and
University Name followed by a newline.
CODE:-
#include <stdio.h>
int main(){
printf("Student id:240238\n");
return 0;
RESULT:-
Lab Task :-3. write a c program to add two numbers ( 2 and 6 ) and display
its sum
CODE:-
Start
#include<stdio.h>
int main ()
{ INPUT 2,6
int a,b,sum;
SUM=2+6
a=2;
b=6;
DISPLAY
sum = a+b; SUM
printf("sum=%d",sum);
return 0 ; END
RESULT:-
Lab Task :-4 . Write A C program to multiply two numbers ( 2 and 8 ) and
display its product .
CODE:-
#include<stdio.h>
{
INPUT 4,5
int a,b, mul;
a=4; MUL=a*b
b=5;
return 0 ; END
RESULT:-
Lab Task :-5. Write a C program to add two numbers (5 and 8) and display its
sum like
(5 + 8 = 13).
CODE:-
scanf("%d",&a);
SUM =
printf("Enter the value of b: "); a+b
scanf("%d",&b);
DISPLAY
SUM
sum = a+b;
printf ("sum=%d",sum);
END
return 0;
RESULT :-
DICUSSION :
The end time, I can say that our programming journey would have
been more difficult if we had not followed sir’s lab manual . Since the
manual had some examples,due to which the mistakes were a little
less .