C Lang Detail & No Adding

#include <stdio.h>
#include <stdlib.h>

/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char *argv[]) {
printf("Name:Dexent Hamza\n");
printf("Last Name:.............\n");
printf("Address:Karachi,Pakistan\n");
printf("Contact:0312.........\n\n");

/* run the below program to get a integer value */
int a,b,answer;
/* A simple program for getting a number output from user & adding them */
    printf("Enter the first Number:");
    scanf("%d",&a);
   
    printf("Enter the second Number:");
    scanf("%d",&b);
   
answer=a+b;
    printf("Your answer is %d\n",answer);
    printf("\nWe had processed your answer by adding them.");
return 0;
}

Output

Share With Friend's

Comments