Python Program To Add Two Numbers
Input:
num1 = 4.7
num2 = 8.3
sum = float(num1) + float(num2)
print('The sum of {0} and {1} is {2}'.format(num1, num2, sum))
Output:
The Sum Of 4.7 And 8.3 Is 13
...
Saturday, November 10, 2018
Add Two Numbers (Java #1)
Java Program To Add Two Numbers
Input:
public class AddTwoIntegers {
public static void main(String[] args) {
int first = 15;
int second = 10;
int sum = first + second;
System.out.println("The sum is: " + sum);
}
}
Output:
Enter Two Numbers: 15...
Substract Two Numbers (C++ #3)
C++ Program To Substract Two Numbers
Input:
#include<stdio.h>
int main()
{
int a,b,sub;
printf("Enter the first no.: ");
scanf("%d",&a);
printf("Enter the second no.: ");
scanf("%d",&b);
sub= a-b;
printf("subtract is = %d\n", sub);
return 0;
}
Output:
First run:
Enter the first...
Add Two Numbers (C++ #2)

C++ Program To Add Two Numbers
Input:
/* C++ Program - Add Two Numbers */
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a, b, sum;
cout<<"Enter two number :";
cin>>a>>b;
...
C++ Programming Example 1 (Hello World)

C++ "Hello, World !" Program
A Simple C++ Program For Displaying "Hello, World" on Screen
...