answersLogoWhite

0


Best Answer

import java.math.*;

class AddNumbers

{

public static void main(String[] args)

{

BigInteger num1=new BigInteger("100");

BigInteger num2=new BigInteger("50");

BigInteger result=num1.add(num2);

System.out.println(result);

}

}

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a C program for sum of two numbers without using operator?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write a program to divide 2 numbers without using the division operator?

int divide1(int a,int b) { int t=1; while(b*t<=a) { t++; } return t-1; }


How do you write a c program to find biggest among two numbers using conditional operator?

int max (int a, int b) { return a>b?a:b; }


How can you download c compiler?

write a c program to fine largest/smallest of 3no (using ?:ternary operator/conditional operator)


Write a c program to find the product of two numbers without using operator?

#include<stdio.h> #include<conio.h> void main() { int a,b,multi; clrscr(); printf("enter a value for a and b"); scanf("%d%d",&a,&b); multi=a*b; printf("the result is %d", multi); getch() }


Write a program in C language to multiply any two numbers without using in source code?

The question is malformed and incomprehensible.


Can you write a program without main in c?

Certainly, you can write a program without main, but you cannot build an executable from it, if that is okay with you.


Write a program in Lex to eliminate white space and collect numbers as a token?

write a lex program to delete space from the program


How do you write an assembly language program to find the sum of n numbers using array?

write an assembly language program to find sum of N numbers


Write a program to print first 100 alternative prime numbers?

This would require some computer knowledge. It can make it easier to find out the prime numbers without figuring it out in your head.


Shell program for gcd of three given numbers?

write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? check bellow link http://bashscript.blogspot.com/2009/08/gcd-of-more-than-two-numbers.html


How do you write a program in objective c numbers 1-100 prime numbers?

fdsgfhgdfhgdf


Write a C program which will ask the operator to enter amount to be invested for the period of investment and the rate of interest for simple interest and compound interest calculation?

Or you could just do the same thing in a spreadsheet without having to pay commercial rates for the program to be written for you