Computer Science, asked by manjitkaurkainth566, 7 months ago

Write the program to find the sum of Three numbers

Answers

Answered by bhoomikasanjeev2009
6

Answer:

The scanf function reads the numbers until the user enters not enters the three numbers. If the user enters integer number then it will be automatically converted to a floating-point number by type promotion. The sum is calculated as num1+num2+num3.

Answered by Anonymous
5

Answer:

Please mark the answer as the brainliest .

Explanation:

class Numbers

{

public static void main(String args [] )

{

int a = 10 ;

int b = 15 ;

int c = 20 ;

int sum = a + b + c ;

System . out . println("The numbers are " + a + b + c );

System . out . println("The sum of three numbers are " + sum ) ;

}

}

Similar questions