C Online Compiler
Example: Sum of Two Numbers in C with Minimum Variable
C
C++
C#
Java
Python
PHP
main.c
STDIN
Run
// Sum of Two Numbers in C with Minimum Variable #include <stdio.h> int main() { int p, q; printf("Enter two integer values::\n\n"); scanf("%d %d", &p, &q); printf("Result:: %d + %d = ", p, q); // calculating sum p = p + q; printf("%d\n", p); return 0; }
12 22
Output
Clear
ADVERTISEMENTS