The following program performs the sum of two integers
Code:
#include<stdio.h> #include<conio.h> main() { int v1,v2,sum; printf("Enter the first value=>"); scanf("%d",&v1); printf("Enter the second value=>"); scanf("%d",&v2); sum=v1+v2; printf("\nThe sum is=%d",sum); getch(); }
Regards
No hay comentarios:
Publicar un comentario