Skip to content
tejsumeru-logo

Tejsumeru

Thoughts Become Reality
  • Home
  • Tutorials
    • Java
    • C language
    • Python
      • SciPy
    • C++ Language
    • PHP
    • Data Structure
    • Kotlin
    • Go Lang
  • Interview Quetions
  • About Us
tejsumeru-logo

Tejsumeru

Thoughts Become Reality
  • Home
  • Tutorials
    • Java
    • C language
    • Python
      • SciPy
    • C++ Language
    • PHP
    • Data Structure
    • Kotlin
    • Go Lang
  • Interview Quetions
  • About Us

If…Else Statement In C++

  • tejsumeru.12@gmail.com tejsumeru.12@gmail.com
  • C++ Language

In if…else statement, if the condition is true then the statements inside if statements are executed, and if the condition is false then statements inside else are executed. Syntax if(Condition or Expression) { //Statements } else { //Statements } Example #include <iostream> using namespace std;… Read More »If…Else Statement In C++

Simple If Statement

  • tejsumeru.12@gmail.com tejsumeru.12@gmail.com
  • C++ Language

In simple if statement the line of code inside if statement are executed if the condition or expression is true. Syntax if (Expression or Condition) { // statements } Example #include <iostream> using namespace std; int main() { int number; cout << “Enter an integer:… Read More »Simple If Statement

Make Simple Calculator Using Switch Case

  • tejsumeru.12@gmail.com tejsumeru.12@gmail.com
  • C++ Language

# include <iostream> using namespace std; int main() { char operation; float no1, no2; cout << “Enter operationerator either + or – or * or /: “; cin >> operation; cout << “Enter two operationerands: “; cin >> no1 >> no2; switch(operation) { case ‘+’:… Read More »Make Simple Calculator Using Switch Case

Check Leap Year

  • tejsumeru.12@gmail.com tejsumeru.12@gmail.com
  • C++ Language

All years which are perfectly divisible by 4 are leap years except for century years. #include <iostream> using namespace std; int main() { int year; cout << “Enter a year: “; cin >> year; if (year % 4 == 0) { if (year % 100… Read More »Check Leap Year

Check Number Is Armstrong Or Not

  • tejsumeru.12@gmail.com tejsumeru.12@gmail.com
  • C++ Language

A positive integer is called an Armstrong number if the sum of cubes of individual digit is equal to that number itself. #include <iostream> using namespace std; int main() { int origNum, num, rem, sum = 0; cout << “Enter a positive three digit integer… Read More »Check Number Is Armstrong Or Not

Number Is Prime Or Not

  • tejsumeru.12@gmail.com tejsumeru.12@gmail.com
  • C++ Language

A positive integer value which is only divisible by 1 and itself is known as prime number. #include <iostream> using namespace std; int main() { int n, i, flag=0; cout << “Enter a positive integer value: “; cin >> n; for(i = 2; i <=… Read More »Number Is Prime Or Not

Check Number Is Palindrome Or Not

  • tejsumeru.12@gmail.com tejsumeru.12@gmail.com
  • C++ Language

If the original value and its reversed value is same then it will called palindrome value. #include <iostream> using namespace std; int main() { int n, num, digit, rev = 0; cout << “Enter a positive integer number: “; cin >> num; n = num;… Read More »Check Number Is Palindrome Or Not

Find Reverse Of Number

  • tejsumeru.12@gmail.com tejsumeru.12@gmail.com
  • C++ Language

In this program, the user entered one integer value and it will find reverese of that number. #include <iostream> using namespace std; int main() { int no, rev = 0, rem; cout << “Enter an integer value: “; cin >> no; while(no != 0) {… Read More »Find Reverse Of Number

Find ASCII Value Of A Character In C++

  • tejsumeru.12@gmail.com tejsumeru.12@gmail.com
  • C++ Language

A character variable holds ASCII value means an integer number between 0 and 127 rather than that character itself in C programming. That value is known as ASCII value. #include <iostream> using namespace std; int main() { char c; cout << “Enter a character: “;… Read More »Find ASCII Value Of A Character In C++

Find Size Of Various Data Types

  • tejsumeru.12@gmail.com tejsumeru.12@gmail.com
  • C++ Language

The size of each variable is find using sizeof operator. #include <iostream> using namespace std; int main() { cout << “Size of char: ” << sizeof(char) << ” byte” << endl; cout << “Size of int: ” << sizeof(int) << ” bytes” << endl; cout… Read More »Find Size Of Various Data Types

  • 1
  • 2
  • Next »

Recent Post

  • Step-by-Step Guide to Installing and Configuring Java SpringBoot
  • Setting up SpringBoot for Java Development: Tips, Tricks, and Best Practices
  • Integrating ChatGPT API into Your Android App: A Guide to Building Cutting-Edge Chatbots
  • What is Android Jetpack Compose: An Introduction to Google’s UI Toolkit
  • Efficient Java Microservices with Quarkus: A Guide to Setting Up the Framework




Copyright © 2018 Tejsumeru