Hi ,, Need your help on this ..I am new to the C programing and wants to learn it and I am doing it on my own ..
#include "stdafx.h"
#include<stdio.h>
int main()
{
int x;
printf("Enter any number\n");
scanf_s("%d\n", &x);
printf("your number is %d\n", x);
return 0;
}
This gets compiled without any error but when I executes it .,.
printf works file asking Enter the number
and when I enter suppose 8 .. then I don't get anything , simply blank and cursor keeps jumping on next tile with hot enter ..
Can anyone help ? I know this will be silly .. but I am stuck
thanks
#include "stdafx.h"
#include<stdio.h>
int main()
{
int x;
printf("Enter any number\n");
scanf_s("%d\n", &x);
printf("your number is %d\n", x);
return 0;
}
This gets compiled without any error but when I executes it .,.
printf works file asking Enter the number
and when I enter suppose 8 .. then I don't get anything , simply blank and cursor keeps jumping on next tile with hot enter ..
Can anyone help ? I know this will be silly .. but I am stuck
thanks