write a program to accept a number and find the sum of two numbers using input statement
Pls help!!
Answers
Answered by
0
Answer:
#include<stdio.h>
int main()
{
int a, b, c;
printf("Enter two numbers to add\n");
scanf("%d%d", &a, &b);
c = a + b;
printf("Sum of the numbers = %d\n", c);
return 0;
}
Greshiblushy:
I'll mark u as brainliest
class AddNumbers
{
public static void main(String args[])
{
int x, y, z;
System.out.println("Enter two integers to calculate their sum");
Scanner in = new Scanner(System.in);
x = in.nextInt();
y = in.nextInt();
z = x + y;
System.out.println("Sum of the integers = " + z);
}
}
Answered by
0
Answer:
in Excel
use formula : =1a +2a
Similar questions
English,
6 months ago
Accountancy,
6 months ago
Computer Science,
6 months ago
Chemistry,
1 year ago
Math,
1 year ago
Math,
1 year ago
English,
1 year ago