Skip to content

Instantly share code, notes, and snippets.

@dmitrybubyakin
Created March 17, 2015 21:21
Show Gist options
  • Save dmitrybubyakin/90231d5e1aff41b0081c to your computer and use it in GitHub Desktop.
Save dmitrybubyakin/90231d5e1aff41b0081c to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <conio.h>
int main()
{
const int n = 10;
const char *msg[n] =
{
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
};
float data[n];
for(int i=0;i<n;i++)
{
printf("Message #%s = ",msg[i]);
scanf("%f",&data[i]);
}
getch();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment