C Program to convert Celcius to Fahrenheit

In this program, we will learn how to convert a temperature in Celcius to Fahrenheit. The standard formula to do so is: Fahrenheit = (Celsius * 9/5) + 32 Or  Fahrenheit = (Celsius * 1.8) + 32 Program: #include <stdio.h> int main() { float temp, fTemp; printf("Enter the temperature in …

What is a Chatbot?

A chatbot is a computer program that simulates human conversation, which could be in the form of text or speech. It uses AI(Artificial Intelligence) and NLP(Natural Language Processing). Chatbots make it very easy for users to find the information they need by interacting with them and responding to their queries …

C++ program to print alphabets from a to z

In this program, we will learn to print all the alphabets using a loop. It should be noted that we can execute a loop on characters too. In such a case the loop runs on the ASCII values of the characters. See also: C program to Find ASCII Value of …

Top 50 PHP Interview Questions and Answers

These are the top 50 interview questions and answers that have been asked in most of the interviews. Q.1 What is PHP? Answer: PHP is a server-side scripting language used mainly for creating web-based applications. However, we can also use it as a general-purpose programming language. It is an open-source …

C Program to find Simple Interest

In this program, we will learn how to calculate the simple interest for a given amount at a given rate for a period of time in years. The simple interest can be calculated by the below given formula S.I. = (Principle * Rate * Time) / 100 We will use …

C++ program to print right triangle star pattern

In this program, we will learn how to print a right triangle having stars (asterisk *) as elements. Program 1 (With fixed number of rows) #include<iostream> using namespace std; int main() { int i, j, n = 5; for( i = 1;i <= n; i++) { for(j = 1;j <= …

C++ program to Find the largest among three numbers

In this program, we will learn to find the largest number among the three numbers given by the user. To understand this, you should have knowledge of- Variables How to take user input if…else if…else conditional statement && operator Ternary operator We will do this program by 2 methods- Using …

Python program to remove duplicate characters from a string

In these programs, we will learn how to remove all the duplicate characters from a given string. To understand these codes, you must have the knowledge of the following topics in python: Strings Loops join and append functions ‘in’ and ‘not in’ keywords program 1(Without any inbuilt function) inputstr = …

Python program to reverse the words in a string

In this program, we will learn how to reverse the words in a given string. To understand this, you must have knowledge of the following topics in python:- String Loops Split and join function Step Argument Program 1(By using a while loop) str= "I like to read" print("The given string …