C
xxxxxxxxxx
struct student {
char name[50];
int roll;
float marks;
} s;
int main() {
printf("Enter information:\n");
printf("Enter name: ");
fgets(s.name, sizeof(s.name), stdin);
printf("Enter roll number: ");
scanf("%d", &s.roll);
printf("Enter marks: ");
scanf("%f", &s.marks);
printf("Displaying Information:\n");
printf("Name: ");
printf("%s", s.name);
printf("Roll number: %d\n", s.roll);
printf("Marks: %.1f\n", s.marks);
return 0;
}
Enter information: Enter name: Jack Enter roll number: 23 Enter marks: 34.5 Displaying Information: Name: Jack Roll number: 23 Marks: 34.5
Linux - anc-api-tools 를 설치하는 방법
Linux - curvedns 를 설치하는 방법
Linux - zenmap 를 설치하는 방법
Python - 숫자가 양수, 음수 또는 0인지 확인
C - 정수의 자릿수 계산
C - 동적 메모리 할당을 사용하여 가장 큰 수 찾기
Python - Excel(XLSX) 파일 쓰기
C++ - 숫자가 소수인지 여부 확인
Kotlin - 숫자 뒤집기
Kotlin - 숫자의 계승 구하기
JavaScript - 문자열이 특정 문자로 시작하고 끝나는지 확인
Linux - zstd 를 설치하는 방법
C++ - 몫과 나머지 찾기
Linux - xbitmaps 를 설치하는 방법
Python - 버블 정렬
Java - 숫자 뒤집기
C++ - 윤년 확인
Kotlin - 숫자를 n 소수점 이하 자릿수로 반올림
We have been online since 2021 and 1 millions of people around the globe have visited our website since then
More visitors every month