Write a program to prìnt sum of three given numbers 1221, 2332, 3443.
Answers
Answered by
2
1221,2332,3443,4554,5665
Answered by
508
✠ Answer :
public class Test {
void myMethod( ) {
int num1, num2, num3, sum ;
num1 = 1221 ;
num2 = 2332 ;
num3 = 3443 ;
sum = num1 + num2 + num3 ;
System.out.println(" 3 given numbers are : ") ;
System.out.println( num1 ) ;
System.out.println( num 2 ) ;
System.out.println( num 3 ) ;
System.out.println( "Sum =" + sum ) ;
}
}
━━━━━━━━━━━━━━━━━━━
☯ Output :
▎3 given numbers are :
▎1221
▎2332
▎3443
▎Sum = 6996
━━━━━━━━━━━━━━━━━━━
Similar questions
Computer Science,
2 months ago
Computer Science,
2 months ago
Science,
4 months ago
Math,
4 months ago
Math,
11 months ago