MPTutorials

Latest Post

Write a C++ program that inputs marks and displays "Congratulations! You have passed". If the marks are 40 or more.

Write a C# program to print the following message.

 Write a C# program to print the following message. C O M P U T E R I S A W O R L D O F S C I E N C E using System; using System.Collections...

Write a JAVA program to print the following message

package pattern; public class Pattern {     public static void main(String[] args) {         System.out.println ( "C") ;         ...

Write a C++ program to print the following message.

  #include<iostream> using namespace std; int main() { cout<< "C" <<endl; cout<< "O M" <&...

Write a C++ program that will prompt the user to enter the current rates of electricity, gas and petrol per unit. Give each item's rate and increment of 10% . Compute and display the prices per unit of electricity, gas, and petrol.

#include<iostream> using namespace std; int main() { int e1, e2, g1, g2, p1, p2; cout<< "Enter current Electricity rate...

Write a program that inputs an even and odd number through keyboard, multiples even with 5 and odd with 3 and odds both results. It subtracts the result from 1000 and finally prints the difference.

#include<iostream> using namespace std; int main() { int even, odd, r; cout<<"Enter an even number: "; cin>&g...

Write a JAVA program that performs all mathematical operations on two variables.

  public class MathemacticaOperations{ public static void mai n(String[] args) {        int num1 = 5, num2 = 10;       int sum;       int d...

JAVA program add two numbers.

  package add2num; public class ADD2num {    public static void main(String[] args) {          int first=123;         int second=321;     ...

Write a C++ program that inputs a five digit number as input and reverse the number.

  #include<iostream> using namespace std; int main() { int n, a, b, c, d; cout<< "Enter 5-digit number: "; cin&g...