CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 14:50:30 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=b08ed434154f61e9d20973238f6a37af2b5e22995beec8086d37413bdf5733dca%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%224BaoqiXYv3FD-QVXcJdPmyidRMHkEbRt%22%3B%7D; HttpOnly; Path=/
cf-ray: 98cf2b94b8b3af3d-BLR
CompilerLab #1 - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- #include <stdio.h>
- struct student
- {
- char name[50];
- int roll;
- float marks;
- } s[3];
- int main()
- {
- int i;
- printf("Enter information of students:\n");
- // storing information
- for(i=0; i<3; ++i)
- {
- s[i].roll = i+1;
- printf("\nFor roll number%d,\n",s[i].roll);
- printf("Enter name: ");
- scanf("%s",s[i].name);
- printf("Enter marks: ");
- scanf("%f",&s[i].marks);
- printf("\n");
- }
- printf("Displaying Information:\n\n");
- // displaying information
- for(i=0; i<3; ++i)
- {
- printf("\nRoll number: %d\n",i+1);
- printf("Name: ");
- puts(s[i].name);
- printf("Marks: %.1f",s[i].marks);
- printf("\n");
- }
- return 0;
- }
- //------------------------------------------
- #include <stdio.h>
- struct student
- {
- char name[50];
- int id;
- float cgpa;
- } s[3];
- int main()
- {
- int i;
- printf("Enter information of students:\n");
- // storing information
- for(i=0; i<3; ++i)
- {
- printf("Enter name: ");
- scanf("%s",s[i].name);
- printf("Enter ID: ");
- scanf("%s",s[i].id);
- printf("Enter cgpa: ");
- scanf("%f",&s[i].cgpa);
- printf("\n");
- }
- printf("Displaying Information:\n\n");
- for(i=0; i<3; ++i)
- {
- printf("Name: ");
- puts(s[i].name);
- printf("ID : ");
- puts(s[i].id);
- printf("CGPA: %.1f",s[i].cgpa);
- printf("\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ M
JavaScript | 2 sec ago | 0.24 KB
-
✅⭐ Make huge profits on trading ✅ NEVER SEEN...
JavaScript | 8 sec ago | 0.24 KB
-
⭐✅ Swapzone Glitch ✅ Working⭐⭐⭐ 4
JavaScript | 15 sec ago | 0.24 KB
-
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 17 sec ago | 0.24 KB
-
✅ Make $2500 in 20 minutes⭐⭐⭐ A
JavaScript | 20 sec ago | 0.24 KB
-
✅ Make $2500 in 20 minutes⭐⭐⭐ Q
JavaScript | 26 sec ago | 0.24 KB
-
✅⭐ Make $2500 in 15 minutes ✅ NEVER SEEN BEFO...
JavaScript | 28 sec ago | 0.24 KB
-
⭐⭐⭐GMAIL Logs (2FA disabled)⭐⭐
Java | 35 sec ago | 0.10 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand