Source Code
// 3. Program to print a integer entered by a user
// Arpan Das - CST 2nd Year (VOCLET)
#include <stdio.h>
//#include <conio.h>
#include <stdlib.h>
void main () {
int x, y;
//clrscr();
//system("cls");
printf("\t\t..:: Integer addition ::..\n\n");
printf("Please enter values for variable a and b respectively: ");
scanf("%d%d", &x, &y);
printf("\nAddition: %d + %d = %d", x, y, x+y);
//getch();
}
Output
..:: Integer addition ::..
Please enter values for variable a and b respectively: 14 15
Addition: 14 + 15 = 29