Assignment 2 Anshuman
Assignment 2 Anshuman
y = -3 * 4 % -6 / 5;
z = y == x;
int a = 1, b = 1, c = 1, res;
res = a == b > c;
Programming Tasks:
Q1. Write a C program to print the range of prime numbers in a given interval.
*
Q4. Write a program in C to print a pyramid of stars: * * *
*****
int k = 5; OUTPUT:- 7
if (++k < 5 && k++ / 5 || ++k < 8);
printf("%d\n”, k);
Function-Based Programs
Q1. Write a program in C to check if a number is binary using functions.