Hi All,
i have the following question:
Write a program that asks for an integer and then prints all the integers from (and including) that value up to (and including) a value larger by 10. (That is, if the input is 5, the output runs from 5 to 15.) Be sure to separate each output value by a space or tab or newline.
Then i write the following:
Code:
#include <stdio.h>
int main(void)
{
int i;
int number;
printf("Enter a number and this program will add Next 10 value for u");
scanf("%d\t, number");
for (i=1, i <11, i++);
{
printf("Number is %d",number);
number = number + 1;
return 0;
}
}
Any faults or improvement needed?