somebody pls tell me how to take a input of individual number strings using scanf function or anything else in c.
input should be appear as
1 2 3 4 5 6 7 8 9 10
if u have any suggestion pls post me.i'll be very grateful to u!![]()
include all headers and stuff...
for(int i=1;i<=10;i++)
{
cout<<i<<" "<<;
}
return 0;
}
පැටියා;5663972 said:ade kohomada c install karanne???

void main()
{
int numbers[10];
int i;
for (i=0; i < 10; i++)
{
printf( "Enter number %d : ", i+1);
scanf("%d",numbers[i]);
}
}
How to install it machan??install a C compiler. if you use ubuntu or like linux distro you will get gcc compiler already installed

පැටියා;5664035 said:How to install it machan??
Can u give me a link to download it and instructions?![]()

machan okedi output ekai input ekai labenne mehema
Enter number 1
Enter number 2
Enter number 3
...
mata ona oka neme
enter number 1 2 3 4 5 6 7 ... vidhiye ekak
scanf("%d %d %d", &x,&y,&z);
machan oka array valata hariyanne naha. also for simple purposes also your command is
wrong .between %d you can't use commas