write a program to find sum of three numders
Answers
Answered by
0
Program:
Using python:
a=int(input("Enter 1st number: "))
b=int(input("Enter 2nd number: "))
c=int(input("Enter 3rd number: "))
print(a+b+c)
Using Java:
import java.util.Scanner;
public class brainly
{
public static void main(String[] args)
{
Scanner scan=new Scanner (System.in);
System.out.print("a: ");
int a=scan.nextInt();
System.out.print("b: ");
int b=scan.nextInt();
System.out.print("c: ");
int c=scan.nextInt();
System.out.print(a+b+c);
}
}
Attachments:
Similar questions
Accountancy,
1 month ago
India Languages,
1 month ago
English,
3 months ago
English,
3 months ago
Chemistry,
9 months ago