|
|
вернуться в форумПоказать все сообщения Спрятать все сообщенияi don't understand why it doesn't work. Can somebody solve this problem #include<stdio.h> int main(void) { int a, b; a = 5; b = 1; printf("The sum is: %d", (a + b)); return 0; }
You should read a and b from console and print just sum without anything else. read rules #include <stdio.h> main() { int a, b; scanf("%d%d", &a, &b); printf("%d\n", a + b); } This is code correct and C |
|
|