#include<stdio.h>
#include<conio.h>
void main()
{
int z;
int x,y;
printf("enter the value of x:");
scanf("%d",&x);
printf("enter the number y:");
scanf("%d",&y);
z=x+y;
printf("%d",z);
getch();
}

A) This is not the C forum
B) You're using void main!
C) Stop using conio!
D) Don't use getch!
E) Use code tags

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.