Here is the C program to read 2 no of input and sum:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
#include <conio.h> #include <stdio.h> #include <stdlib.h> void main (void) { int x,y; long int z; clrscr(); printf("HELLO WORLD"); printf("\n Enter First No:"); scanf("%d",&x); printf("\n Enter Second No:"); scanf("%d",&y); z=x+y; printf("\n Sum of %d And %d = %ld",z,y,z); printf("\n\n Press Any key to Exit..."); getch(); } |
If you found any mistake in the above C Program program to language to read 2 no of input and sum then please mention it by commenting below.