
lulmon
u/lulmon

problem ;its fine when we enter first student data but when we put second line it bugs and it print name and grade at same time how to fix it?
#include <stdio.h>
struct student
{
int roll;
char name[20];
char grade[10];
float per;
} s[1];
int main()
{
int i;
for (i = 0; i <= 1; i++)
{
printf("Enter name ");
gets(s[i].name);
printf("Enter grade");
gets(s[i].grade);
printf("enter roll and percantage");
scanf("%d %f", &s[i].roll, &s[i].per);
}
printf("record of students\n");
for (i = 0; i <= 1; i++)
{
printf("record of student[%d]", i + 1);
printf("\nStudent name is %s\nstudent grade is %
class Circle():
pi=3.14
def __init__(self,radius=1):
self.radius = radius
def get_c(self):
return 2 *Circle.pi*radius
print(my =Circle(30))
output:TypeError: 'my' is an invalid keyword argument for print()
"print boilerplate code": {
"prefix": "print boilerplate code",
"body": [
"printf("");",
"scanf("",);",
],
"description": "Log output to console"
}
output;
printf(
);
scanf(
,);
how do i fix in and make :printf("");
scanf("",);
You've reached the end of this feed.
