HTML Table Example – How to Create a School Time Table in HTML with Code CSE February 19, 2026 School Time Table Day 9:00–10:00 10:00–11:00 11:00–12:00 12:00–1:00 2:00–3:00 M... Continue Reading
Print the prime number from 2 to n where n is natural number given in C++ CSE January 12, 2026 #include <iostream> #include <cmath> using namespace std; // Method 1: Simple approach - check divisibility bool isPrimeSimple(... Continue Reading
C++ program to check whether a given number is an Armstrong number or not CSE January 12, 2026 #include <iostream> #include <cmath> using namespace std; // Function to count number of digits int countDigits(int num) { ... Continue Reading
Write a c++ program to Print the sum of digits of a given number CSE January 12, 2026 #include <iostream> #include <cmath> using namespace std; // Method 1: Using iteration (while loop) int sumOfDigitsIterative(in... Continue Reading
Write a c program to illustrate use of data type enum. CSE January 12, 2026 #include <stdio.h> #include <string.h> // Example 1: Days of the week (default values: 0, 1, 2, ...) enum Days { SUNDAY, ... Continue Reading
Write a c program that opens an existing text file and copies it to a new text file with all lowercase letters changed to capital letters and all other characters unchanged. CSE January 12, 2026 #include <stdio.h> #include <ctype.h> #include <stdlib.h> int main() { FILE *sourceFile, *destFile; char sourceFi... Continue Reading
Write a C program to create a structure Student containing fields for Roll No., Name, Class, Year and Total Marks. Create 10 students and store them in a file. CSE January 12, 2026 #include <stdio.h> #include <string.h> // Structure definition struct Student { int rollNo; char name[50]; char cla... Continue Reading
Write a program to demonstrate the call by value and the call by reference concepts in c. CSE January 12, 2026 #include <stdio.h> // Call by Value - receives copy of arguments void swapByValue(int a, int b) { int temp; printf("\nIn... Continue Reading
Write a c program to illustrate the use of storage classes. CSE January 12, 2026 #include <stdio.h> // Global variable (external storage class) int globalVar = 100; // Static global variable (file scope only) stati... Continue Reading
Write a c program to find the GCD of two numbers using iteration and recursion CSE January 12, 2026 #include <stdio.h> // GCD using iteration (Euclidean algorithm) int gcdIterative(int a, int b) { while (b != 0) { int tem... Continue Reading
Write a c program to print the reverse of a given number. CSE January 12, 2026 #include <stdio.h> int main() { int num, reversed = 0, remainder; printf("Enter a number: "); scanf("... Continue Reading
Write a Java program that correctly implements the producer – consumer problem using the concept of inter thread communication. CSE January 09, 2026 import java.util.LinkedList; import java.util.Queue; import java.util.Random; public class ProducerConsumerProblem { public static void... Continue Reading
Write a Java program that implements a multi-thread application that has three threads. First thread generates a random integer every 1 second and if the value is even, the second thread computes the square of the number and prints. If the value is odd, the third thread will print the value of the cube of the number. CSE January 09, 2026 import java.util.Random; public class MultiThreadNumberProcessor { // Shared container class to hold the generated number and manage sy... Continue Reading