Created
March 17, 2015 21:21
-
-
Save dmitrybubyakin/90231d5e1aff41b0081c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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