#include<stdio.h>
#include<conio.h>
main()
{
int a,b,sum=0;
clrscr();
printf("Enter two variable:--");
scanf("%d%d",&a,&b);
sum=a+b;
printf("Sum of %d+%d=%d",a,b,sum);
getch();
}
To put two or more given values together.
program to find maximum of two numbers using pointers
"What is 3*(-5)" would be such a problem.
The formal way to write 2014 in words is "two thousand fourteen," not "two thousand and fourteen". In addition, it should be all lowercase. A slang version of the same would be "twenty fourteen."
To write a program that performs arithmetic operations between two matrices using arrays, first define two 2D arrays to represent the matrices. Then, create functions for each arithmetic operation (addition, subtraction, multiplication, etc.) that iterate through the elements of the matrices, performing the operation element-wise. Ensure to handle cases where the matrices have different dimensions, as this would affect the validity of the operations. Finally, print the result matrix after each operation.
void print_sum (float a, float b) { printf ("The sum of %d and %d is %d\n", a, b, a+b); }
Write a program using recursion which should take two values and display 1st value raised to the power of second value.
Matrices can't be "computed" as such; only operations like multiplication, transpose, addition, subtraction, etc., can be done. What can be computed are determinants. If you want to write a program that does operations such as these on matrices, I suggest using a two-dimensional array to store the values in the matrices, and use for-loops to iterate through the values.
public class AddNumbers{ public int add(int a, int b){ return a + b; } }
May be link might help -> http://www.allinterview.com/viewpost/408298.html There it is implemented through...... Operator Overloading!
http://www.assignmentsclub.com/
write a c program to circular queue
To put two or more given values together.
write an addition story for two 3-digit numbers. write the answer to your story
int main (void) { printf ("%d+%d=%d\n", 6, 7, 6+7); return 0; }
Every character in C++ is basically belongs to short. You can convert entered characters to short, compare their values and according to the values sort them in alphabetical order.
write it in 8085