Write an algorithm that reads 2 numbers from keyboard and displays their sum.?

1 answer

Answer

1258618

2026-05-11 22:15

+ Follow

#include<stdio.h>

int main(void) {

int a, b;

printf("Enter two numbers: ");

scanf("%d\n%d\n", &a, &b);

printf("%d + %d = %d\n", a, b, a+b);

return 0;

}

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.