Professional Documents
Culture Documents
2a
STUDENT’S NAME – Aaryan Saharan
STUDENT’S UID – 22BAI70933
CLASS AND GROUP – 102/B
SEMESTER –1
Learn how to use operators and apply decision making in c using if-else, how to
use bitwise, conditional, arithmetic operators.
FLOWCHART/ ALGORITHM -
we perform the
bitwise operations
on them
we print the
values.
SUBJECT NAME-Introduction to Problem Solving Lab SUBJECT CODE-22CSH101
PROGRAM CODE -
#include<stdio.h>
int main()
{
int num , num1 , nd , orrr ,xxxor , neg ,left ,right ;
printf("pls input two numbers");
scanf("%d %d", &num , &num1);
nd= num & num1;
orrr = num | num1;
xxxor= num ^ num1;
neg= ~num ;
left= num << 2;
right= num >> 2;
Its kinda same to what we did in arithmetic operation here we are taking input from
users and them using operations knowns as bitwise operator which apply on bit value
of the numbers instead of their actual value.
OUTPUT -
Approach the programming tasks using techniques learnt and write pseudo-code.
2. Viva 8
3. Conduct 12
Total Marks 30