Write a 'C' program to enter two integers and to print thier sum?
#include< main() { int a, b, s; prinft("Enter two integers\n"); scanf("%d %d", &a, &b); s = a + b; printf("The Sum is %d\n", s); return(0); } |
---|
For eg :-
Output :-
Enter two integers
25 10
The Sum is 35
0 comments:
Post a Comment