#include"stdio.h"
int main ( int argc, char *argv[ ] )
{
if(argc == 2)
printf("Sum of Two Numbers: %d \r\n", atoi( argv[1] ) + atoi( argv[2] ) );
else
printf( "In-valid number of arguments !! \r\n" );
return 0;
}
Regards,
Lakshmi Sreekanth
It is very easy. The program begins here..... /*Program to sum and print numbers without creating variables*/ #include<stdio.h> main() { clrscr(); printf("%d+%d=%d",5,2,5+2); getch(); } /*Program ends here*/ Now just by changing the numbers in the "printf" statement we can add, subtract, multiply and divide the numbers without using variables. Hence the problem is solved..........
The question is malformed and incomprehensible.
To swap two variables without using a third variable, use exclusive or manipulation... a ^= b; b ^= a; a ^= b;
Algebraic expression
Use list assignment i.e. for two variables $a, $b: ($a,$b) = ($b,$a)
Without seeing the program, I can only say: 'zero or more times'
An expression is a collection of numbers and variables, along with mathematical operations, but without an equality (or inequality) symbol.
An organized list of instructions that, when executed, causes the computer to behave in a predetermined manner. Without programs, computers are useless.A program is like a recipe. It contains a list of ingredients (called variables) and a list of directions (called statements) that tell the computer what to do with the variables. The variables can represent numeric data, text, or graphical images.
That would be assembly language or machine language, and just so you know, it is very difficult to learn.
a=a^b; b=a^b; a=a^b;
We use this in order to make program easier and less complex.some program cannot be performed without loops
probably not google the question to see why