Join Regular Classroom : Visit ClassroomTech

coding questions

C program to accept three integer numbers as the length of three sides of a triangle test the validity of lengths and classify the triangle – Coding Question 5

Write a C program to accept three integer numbers as the length of three sides of a triangle , test the validity of lengths and classify the triangle. #include<stdio.h> int main() { int a,b,c; printf("n Enter the 1st Side of the triangle: "); scanf("%d",&a); printf("n Enter the 2nd Side of the triangle: "); scanf("%d",&b); printf("n […]

C program to accept three integer numbers as the length of three sides of a triangle test the validity of lengths and classify the triangle – Coding Question 5 Read More »

check a number whether it is odd or even by bitwise operato – Coding Question 3

Write a program to check a number whether it is odd or even by bitwise operator. #include<stdio.h> int main() { int a,b; printf("n Enter the a Number: "); scanf("%d",&a); b= a & 1; // Not Necessary only to check printf("n Resultant = %d",b); // Even odd Checking if(b) printf("n %d is odd",a); else printf("n %d

check a number whether it is odd or even by bitwise operato – Coding Question 3 Read More »