Archived
18 lines
332 B
C
Executable File
18 lines
332 B
C
Executable File
/*
|
|
1.Даны целочисленные переменные А и В. Найти их сумму и вывести на экран.
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
|
|
int getSum(int a, int b) {
|
|
return a + b;
|
|
}
|
|
|
|
int main() {
|
|
const int A = 3;
|
|
const int B = 8;
|
|
|
|
printf("Sum: %d", getSum(A, B));
|
|
return 0;
|
|
}
|