Program in Switch Statement Program in Switch Statement Switch statements : Switch case statements can be used to execute the condition code based on the […]
Read moreTag: c programming
To check weather a number is Prime or Not
To check weather a number is Prime or Not To check weather a number is Prime or Not Question: Write a C program […]
Read moreProgram for diamond shape π
#include <iostream> using namespace std; class A { public: Β Β void show() { Β Β Β Β cout << “Diamond pattern: “; Β […]
Read morePrograms in C language
Programs in C language Programs in C language Ques 1:Β Β Write a programΒ to find out whether it is an odd number or even […]
Read moreTernary Operator
Ternary Operator Ternary Operator Syntax: Condition ? Expression 1(True)Β :Β Expression 2(False) ; Program: To check wheather the given number is even or odd […]
Read moreFactorial of a number using Recursion
Factorial of a number using Recursion Factorial of a number using Recursion #include <stdio.h> //Function Prototype Declaration int factorial (int a); int main() […]
Read moreInput a number less than 5 and print “Hello World” five times if the condition is true – Program by using for loop, do while loop and while loop
Input a number less than 5 and print “Hello World” five times if the condition is true – Program by using for loop, do while […]
Read moreInput a number till 12 and print no of month, switch case program, java switch program, C switch program
Input a number till 12 and print no of month, switch case program, java switch program, C switch program Input a number till 12 and […]
Read moreInput number below 7 and print Day of week, switch programming, switch programming in C, switch programming in JAVA, programming questions
Input number below 7 and print Day of week, switch programming, switch programming in C, switch programming in JAVA, programming questions Input number below 7 […]
Read moreWrite a c++ program to find sum of diagonal elements of a square matrix
Write a c++ program to find sum of diagonal elements of a square matrix Write a c++ program to find sum of diagonal elements of […]
Read more
Recent Comments