example

Run Settings
LanguageC
Language Version
Run Command
#include<stdio.h> int n = 3; struct movieStars{ char name[20]; int age; int totaleFan; }; int main() { int k; char search[20]; struct movieStars info[100]; for(int i = 0; i < n; i++){ printf("Movie Star Name:"); gets(info[i].name); printf("How old are %s is: ", info[i].name); scanf("%d", &info[i].age); printf("%s total fans: ", info[i].name); scanf("%d", &info[i].totaleFan); getchar(); } printf("Who is your favorite actor/actress: "); gets(search); for(k = 0; k < n; k++){ if(strcmp(search, info[k].name)==0){ break; } } printf("Name: %s\nAge: %d\nFans: %d", info[k].name, info[k].age, info[k].totaleFan); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines