C Program For Explain Expression
Write C Program For Explain Expression
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
// Explain Expression #include <stdio.h> #include <conio.h> int main() { int w, x, y, z, p; clrscr(); printf( " Enter 4 Integers : " ); scanf( "%d %d %d %d", &w, &x, &y, &z ); p = (w + x) / (y - z); printf( "\n Value of P = %d", p ); getch(); return 0; } Output: Enter 4 Integers : 10 20 9 6 Value of P = 10 |