#include<stdio.h>
struct anik
{
char name[50];
int age;
char sem[4];
};
int main()
{
struct anik std1 = {"Aubdur Rob Anik", 26, "1-2"};
struct anik std2 = {"Anik Das", 28, "4-2"};
printf("First Student : \n");
printf("Name : %s\n", std1.name);
printf("Age : %d\n", std1.age);
printf("Semester : %s\n", std1.sem);
printf("\nSecond Student : \n");
printf("Name : %s\n", std2.name);
printf("Age : %d\n", std2.age);
printf("Semester : %s\n", std2.sem);
return 0;
}
struct anik
{
char name[50];
int age;
char sem[4];
};
int main()
{
struct anik std1 = {"Aubdur Rob Anik", 26, "1-2"};
struct anik std2 = {"Anik Das", 28, "4-2"};
printf("First Student : \n");
printf("Name : %s\n", std1.name);
printf("Age : %d\n", std1.age);
printf("Semester : %s\n", std1.sem);
printf("\nSecond Student : \n");
printf("Name : %s\n", std2.name);
printf("Age : %d\n", std2.age);
printf("Semester : %s\n", std2.sem);
return 0;
}
Comments
Post a Comment