CodeGraderBench/CodeGraderBench huggingface dataset:
Problem: Write a program to accept two numbers from the user start and end and print the Pythagorean triplets within the range of start to end, both inclusive, but the triplets should not have any common factor. If no such triplets exist, then print 0. The triplets should be in increasing order.

Student submission:
#include<simplecpp>
int gcd(int p ,int q){
  int r=p,s=q;
  if(q>p){
    r=q;
    s=p;
  }
  int rem;
  while(r%s!=0){
    rem=r%s;
    r=s;
    s=rem;
  }
  return s;
}
main_program{
  int start,end;
  cin>>start;
  cin>>end;
  
  int a=start,b,c;
  while(a<=end){
    b=start;  
    while(b<=end){
      c=start;
      while(c<=end){
        if((a*a)+(b*b)==(c*c) && b>a && c>b && gcd(a,b)==1 && gcd(b,c)==1 ){
	  cout<<a<<" "<<b<<" "<<c<<"\n";
	  break;
	}
	c++;
      }
    b++;
    }
    a++;
  }     
}

Grading criterion: Quality of variable names
Rating A: Good variable names
Rating B: Ok Variable Names
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: B
Problem: Write a program to accept two numbers from the user start and end and print the Pythagorean triplets within the range of start to end, both inclusive, but the triplets should not have any common factor. If no such triplets exist, then print 0. The triplets should be in increasing order.

Student submission:
#include<simplecpp>
main_program{
	int n; 
	cin >> n;
	int start;
	cin >> start >> n;
        int a, b, c;
	int sq1, sq2, sq3;
	for(a=start; a<n; a++){
		sq1=a*a;}
	for(b=start+1; b>a; b++){
		sq2=b*b;}
	for(c=start+2; c<n; c++){
		sq3=c*c;}
	if(sq3== sq1+sq2){cout<<a<<b<<c;
	}

}

Grading criterion: Quality of variable names
Rating A: Good variable names
Rating B: Ok Variable Names
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: B
Problem: Write a program to accept two numbers from the user start and end and print the Pythagorean triplets within the range of start to end, both inclusive, but the triplets should not have any common factor. If no such triplets exist, then print 0. The triplets should be in increasing order.

Student submission:
#include<simplecpp>
main_program{

int a, b, m = 1, c, d = 2;

cin >> a >> b;

c = a;
while(m<2000 && c>a-1){
m = sqrt((c*c) + (d*d));

if(c > d){
c = a;
d++;
continue;}

if( pow(m,2) == pow(c,2) + pow(d,2) && m < b+1 ){
cout << c << " " << d << " " << m << endl;
c++;
}

else{
c++;
}
}
}

Grading criterion: Quality of variable names
Rating A: Good variable names
Rating B: Ok Variable Names
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: C
Problem: Write a program to accept two numbers from the user start and end and print the Pythagorean triplets within the range of start to end, both inclusive, but the triplets should not have any common factor. If no such triplets exist, then print 0. The triplets should be in increasing order.

Student submission:
#include<simplecpp>
main_program
{
	int a,b,u=0,r=0;
	cin>>a>>b;
	for(int i=a;i<=b;i++)
	{
		for(int j=i+1;j<=b;j++)
		{
			for(int k=j+1;k<=b;k++)
			{
				if(k*k==i*i+j*j)
				{u=0;
					for(int y=2;y<10000;y++)
					{
						if(i%y==0&&j%y==0&&k%y==0)
					u++;
					
					}
					if(u==0){r++;

							cout<<i<<" "<<j<<" "<<k<<endl;
				}}

			}}
	}
if(r==0)
	cout<<0;
}

Grading criterion: Quality of variable names
Rating A: Good variable names
Rating B: Ok Variable Names
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: C
Problem: Write a program to accept two numbers from the user start and end and print the Pythagorean triplets within the range of start to end, both inclusive, but the triplets should not have any common factor. If no such triplets exist, then print 0. The triplets should be in increasing order.

Student submission:
#include <simplecpp>
main_program{
	
	int start,end,sum,sum1;
	sum=0;
	sum1=0;
	
	cin>>start>>end;
	
	for(int a=start+1;a<end;a++){
	
		
		

		for(int b=a;b<end;b++){
			
			for(int c=a;c<end;c++){
				if(c*c==a*a+b*b){
					for(int i=2;i<=c;i++){
						if(a%i==0 && b%i==0 && c%i==0)
							sum1=sum1+0;
					else sum1=sum1+1;}
					if(sum1==c-1){
					cout<<a<<" "<<b<<" "<<c;
					cout<<"\n";
					
					sum=sum+1;
					sum1=0;
						}
					else sum1=0;


				
			}
			}
		}
		
		}
	
	if(sum==0)
		cout<<0;
}

Grading criterion: Quality of variable names
Rating A: Good variable names
Rating B: Ok Variable Names
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: B
Problem: Write a program to accept two numbers from the user start and end and print the Pythagorean triplets within the range of start to end, both inclusive, but the triplets should not have any common factor. If no such triplets exist, then print 0. The triplets should be in increasing order.

Student submission:
#include<simplecpp>
main_program{
	int x,y,n;
	cin>>x>>y;
	for(int i=x; i<=y; i++){
		for(int j=x; j<=y; j++){
			for(int z=x; z<=y; z++){
				if(z*z==i*i+j*j && z>j && j>i){
				cout<<i<<" "<<j<<" "<<z<<endl;}}}}}

Grading criterion: Quality of variable names
Rating A: Good variable names
Rating B: Ok Variable Names
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: C
Problem: Write a program to accept two numbers from the user start and end and print the Pythagorean triplets within the range of start to end, both inclusive, but the triplets should not have any common factor. If no such triplets exist, then print 0. The triplets should be in increasing order.

Student submission:
#include<simplecpp>
#include<math.h>
main_program{
	int start;
	int end;
	cin >> start >> end;
	int a,b;
	bool yes = false;
	float c;

	while(c<=end && a<=end && b <=end) {
		
		while(pow((a*a)+(b*b),0.5)<=end){
			a = start;
			b= start;
			for(int k=2; k <= min(a,b) ; k++){
			if(a%k ==0 & b %k==0) {
				 yes == true;
				 break;}
			}c= pow((a*a *1.0)+(b*b*1.0)+0.0,0.5);
			int j = c;
		       if(c-j !=0) yes = true;
			b++;
			
	
	      	
	       if(yes == false) {
		      if (a <b ) cout << a << " "<< b<<" "<<c<<endl;
		     if(b<a) cout <<b<<" "<<a<<" "<<c<<endl;
	       }
		} a++; 
}
}

Grading criterion: Quality of variable names
Rating A: Good variable names
Rating B: Ok Variable Names
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: B
Problem: Write a program to accept two numbers from the user start and end and print the Pythagorean triplets within the range of start to end, both inclusive, but the triplets should not have any common factor. If no such triplets exist, then print 0. The triplets should be in increasing order.

Student submission:
#include <simplecpp>

main_program{

	int start,end,a,b,c;
	int x = -1;
	int y = -1;
	int z = -1;

	cin>>start>>end;

	for(c = start; c <= end; c++) {
	
		for(b = start; b <= end; b++) {
		
			for(a = start; a <= end; a++){
			

				if (a*a + b*b == c*c && a < b && b < c) {
	
					
					x = a; y = b; z = c;
					cout<<x<<" "<<y<<" "<<z<<endl;

				}
				
			}
		
		}
	
	}

	if ((x == -1) && (y == -1) & (z == -1)) {
	
		cout<<0<<endl;
	
	}

}

Grading criterion: Quality of variable names
Rating A: Good variable names
Rating B: Ok Variable Names
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: C
Problem: Write a program to accept two numbers from the user start and end and print the Pythagorean triplets within the range of start to end, both inclusive, but the triplets should not have any common factor. If no such triplets exist, then print 0. The triplets should be in increasing order.

Student submission:
#include<simplecpp>
main_program
{
	int start, end;
	cin>>start>>end;

	int a, b, c, d;
	for(int a>=start; b<=end; a++)

Grading criterion: Quality of variable names
Rating A: Good variable names
Rating B: Ok Variable Names
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: B
Problem: Write a program to accept two numbers from the user start and end and print the Pythagorean triplets within the range of start to end, both inclusive, but the triplets should not have any common factor. If no such triplets exist, then print 0. The triplets should be in increasing order.

Student submission:
#include<simplecpp>
main_program{
	int start,end;
	cin>>start>>end;
	while((1<=start) &&(end<=10000) &&(start<=end)){
		int a,b,c;
		}}

Grading criterion: Quality of variable names
Rating A: Good variable names
Rating B: Ok Variable Names
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: C
Problem: Write a program to accept two numbers from the user start and end and print the Pythagorean triplets within the range of start to end, both inclusive, but the triplets should not have any common factor. If no such triplets exist, then print 0. The triplets should be in increasing order.

Student submission:
#include<simplecpp>
main_program{
	double a,b,c,n1,n2;
	cin>>n1>>n2;
	a=n1;b=n1;c=n1;
	
	repeat(n2-n1){repeat(n2-n1){repeat(n2-n1){double k=pow(a,2);if(k==pow(b,2)+pow(c,2)){cout<<a<<b<<c;c++;}}b++;}a++;}
		}

Grading criterion: Quality of variable names
Rating A: Good variable names
Rating B: Ok Variable Names
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: C
Problem: Write a program to accept two numbers from the user start and end and print the Pythagorean triplets within the range of start to end, both inclusive, but the triplets should not have any common factor. If no such triplets exist, then print 0. The triplets should be in increasing order.

Student submission:
#include <simplecpp>
main_program{
 int start,end,i=start,j=i+1,k=j+1;
 cin>>start>>end;
 while(i<=end-2){
  while(j<=end-1){
   while(k<=end){
    int pyt = i*i+j*j-k*k;
    if (pyt==0){
     cout<<i<<" "<<j<<" "<<k<<endl;
    }
   }
  }
 }
}

Grading criterion: Quality of variable names
Rating A: Good variable names
Rating B: Ok Variable Names
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: C
Problem: Write a program to accept two numbers from the user start and end and print the Pythagorean triplets within the range of start to end, both inclusive, but the triplets should not have any common factor. If no such triplets exist, then print 0. The triplets should be in increasing order.

Student submission:
#include <simplecpp>
main_program{
    int firstn,lastn;
    cin >> firstn >> lastn;
    int a = firstn, b=firstn, c=firstn,counter = 0;
    
    
    
    
    
    while(a <= lastn && b <=lastn && c<= lastn){
        if(c*c == a*a + b*b){
            if (a>b){
                c+=1;
                }
            else {
                int k=2;
                bool fact = false;
                while(k<a){
                    if(a%k == 0 && b%k==0 && c%k == 0){
                        fact = true;
                        break;
                    }
                    else{
                        k++;
                    }
                }
                if(!fact){
                    cout << a << " " << b << " " << c << "\n";
                    b+=1;
                    c= firstn;
                    counter ++;
                }
                else{
                    c +=1;
                }
                
            }

        }
        else{
            c+=1;
            
        }
        if(c == lastn+1){
            c = firstn;
            b+=1;

        }
        if(b == lastn +1){
            b = firstn;
            a+=1;
        }
        


        

    }
    if(counter == 0){
        cout << 0;
    }
    

}

Grading criterion: Quality of variable names
Rating A: Good variable names
Rating B: Ok Variable Names
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: C
Problem: Write a program to accept two numbers from the user start and end and print the Pythagorean triplets within the range of start to end, both inclusive, but the triplets should not have any common factor. If no such triplets exist, then print 0. The triplets should be in increasing order.

Student submission:
#include <simplecpp>
main_program{
	int start, end,m=1,t=3;
	cin>>start>>end;
	if(end>=start&&1<=start&&end<=10000){
	int a=start,c=end;
	int b=a+1;
	float d;
	while(a<=end-2){
		while(b<c){
		while(c>b){
		d=sqrt(a*a+b*b);
		int n=2;
		while(n<=a){
			if(a%n==0){
				if(b%n==0){
					if(c%n==0){t=1;break;}
				}
			}
			n++;
		}
	        if(t==3&&d==c){m=2; cout<<a<<" "<<b<<" "<<c<<endl;}
		t=3;
		c--;}
		c=end;
		b++;
	}
		a++;
		b=a+1;
	}
	if(m==1){cout<<0;}
}
}

Grading criterion: Quality of variable names
Rating A: Good variable names
Rating B: Ok Variable Names
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: C
Problem: Write a program to accept two numbers from the user start and end and print the Pythagorean triplets within the range of start to end, both inclusive, but the triplets should not have any common factor. If no such triplets exist, then print 0. The triplets should be in increasing order.

Student submission:
#include<simplecpp>
main_program{
	int start,end;
	cin>>start>>end;
	
	bool test = false;

	if(1<=start && end<=10000 && start<=end){
		int a;

		for(a = start; a<=end; a++){
			int b;

		for(b = start; b<=end; b++){
			int c;

		for(c = start; c<=end; c++){
		
			if(a*a + b*b == c*c && a<b && b<c){
				bool test2 = false;	
				for(int i=2; i<a; i++){
					if(a%i==0){
						if(b%i==0){
							if(c%i==0){
							test2 = true;
							break;}
						}
					}	
					}
				

				if(test2==false){
					cout<<a<<" "<<b<<" "<<c<<endl;
					test = true;
				}
			}
		}
		}
		}
	}
	if(test == false){
		cout<<0;
	}
}

Grading criterion: Quality of variable names
Rating A: Good variable names
Rating B: Ok Variable Names
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: B
Problem: Write a program to accept two numbers from the user start and end and print the Pythagorean triplets within the range of start to end, both inclusive, but the triplets should not have any common factor. If no such triplets exist, then print 0. The triplets should be in increasing order.

Student submission:
#include<simplecpp>
main_program{
	int a;
	int b;
	cin>>a;
	cin>>b;
	int m,k;
	
	if(a>=1&&b<=10000&&a<=b){
		while(a<=b-2){
			          k= a+1;
				
			        
 			        
    			    
    			    

			while(k<=b-1){
			 m=k+1;
		
			while(m<=b){
				if(k*k+a*a==m*m){
				   int	n=k%a;
					if(m%n!=0||n==1){


					cout<<a<<" "<<k<<" " <<m<<endl;
				}
				}
			
				m=m+1;
			}
			k=k+1;
			}
			a=a+1;
		}
		
	}
	

}

Grading criterion: Quality of variable names
Rating A: Good variable names
Rating B: Ok Variable Names
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: C
Problem: Write a program to accept two numbers from the user start and end and print the Pythagorean triplets within the range of start to end, both inclusive, but the triplets should not have any common factor. If no such triplets exist, then print 0. The triplets should be in increasing order.

Student submission:
#include<simplecpp>
main_program{
int s,a,b,c,e;
cin>>s>>e;
while(s>a>b>c>e){
	:
}

Grading criterion: Quality of variable names
Rating A: Good variable names
Rating B: Ok Variable Names
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: C
Problem: Write a program to accept two numbers from the user start and end and print the Pythagorean triplets within the range of start to end, both inclusive, but the triplets should not have any common factor. If no such triplets exist, then print 0. The triplets should be in increasing order.

Student submission:
#include<simplecpp>
#include<math.h>

int gcd(int m, int n, int o){
	int a=m;

	for(;a>=1; a--){
	       if(m%a==0){
	       		if(n%a==0){
		 		if(o%a==0){
					break;
				}
			}
	       }
	}
return a;
}//defining greatest common divisor function

main_program{
	int S, L;//S denotes the smaller number, L denotes the larger
	cin>>S>>L;

    	int d=0; // defining d which calculates the number of triplets	
	for(int  i=S; i<=L; i++){
		for(int j=i+1;j<=L; j++){
			for(int k=j+1; k<=L; k++){//taking 3 loops for three iterations consecutively from S to L
				if(k==sqrt(i*i+j*j)){
					if(gcd(i,j,k)==1){
						cout<<i<<" "<<j<<" "<<k<<" "<<endl;
						d++;//given that if there is no common factor then only we have to print it
					}
				}
			}
		}
	}

	if(d==0){
		cout<<d<<endl;
	}//if number of triplets is 0 then print 0

	
						
	
}

Grading criterion: Quality of variable names
Rating A: Good variable names
Rating B: Ok Variable Names
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: C
Problem: Write a program to accept two numbers from the user start and end and print the Pythagorean triplets within the range of start to end, both inclusive, but the triplets should not have any common factor. If no such triplets exist, then print 0. The triplets should be in increasing order.

Student submission:
#include<simplecpp>
main_program{
	int start,end;
	cin >> start >> end;

	int a,b,c,d;
	for(int i=start; i<=end; i++){
		a=i;
		for(int j=start; j<=end; j++){
			b=j;
			for(int k= start; k<=end; k++){
				c=k;
				d=a*a + b*b;
					if(d==(c*c)){
						if(a<b && b<c){
							bool ncf = true;
							for(int l=2; l<a; l++){
								if(a%l==0 && b%l==0&& c%l==0){
									ncf= false;
									break;
								}
							}
							if(ncf){
								cout << a << " "<<b<<" " <<c<< " " "\n";

					}
			}
		}
	}
}
if(printed == false);
printed= false
}
}
}

Grading criterion: Quality of variable names
Rating A: Good variable names
Rating B: Ok Variable Names
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: B
Problem: Write a program to accept two numbers from the user start and end and print the Pythagorean triplets within the range of start to end, both inclusive, but the triplets should not have any common factor. If no such triplets exist, then print 0. The triplets should be in increasing order.

Student submission:
#include<simplecpp>
main_program{
	int az=0,start,end,x,y,ax,ay;
	cin>>start>>end;
	for(int i=start;i<=end;i++){
		for(int j=start;j<=i;j++){
			for(int c=start;c<=i;c++){
				if(i*i==c*c+j*j){
					if (c>j){
						x=c;
						y=j;
						for (int z=2;z<=j;z++){
							ax=x%z;
							ay=y%z;
							if(ax==0 && ay==0){
								az++;
							        break;}
							else{
								cout<<j<<" "<<c<<" "<<i<<"\n";
							        break;}
						}
		}
	}
}
}
}
}

Grading criterion: Quality of variable names
Rating A: Good variable names
Rating B: Ok Variable Names
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: C
Problem: Write a program to accept two numbers from the user start and end and print the Pythagorean triplets within the range of start to end, both inclusive, but the triplets should not have any common factor. If no such triplets exist, then print 0. The triplets should be in increasing order.

Student submission:
#include <simplecpp>

main_program {
int start, end, i=0, j=0, k=0, m=0, z=0, x=0, y=0;
float l=0;
cin >> start >> end;

for (i=start; i<=end; i++){
for (j=i; j<=end; j++){

k= i*i + j*j;
l= sqrt((1.0*i)*(1.0*i) + (1.0*j)*(1.0*j));
m= sqrt(k);
if (l==m){


for (z=2; z<=i; z++){
x=0;
if (i%z==0 && j%z==0 && m%z==0){
x=1;
break;

}

}
if (x==0 && m<=end)
{
cout << i << " " << j << " " << m << endl;
y=1;
}



}
}
}
if (y==0)
cout << 0 << endl;
}

Grading criterion: Quality of variable names
Rating A: Good variable names
Rating B: Ok Variable Names
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: C
Problem: Write a program to accept two numbers from the user start and end and print the Pythagorean triplets within the range of start to end, both inclusive, but the triplets should not have any common factor. If no such triplets exist, then print 0. The triplets should be in increasing order.

Student submission:
#include<simplecpp>
main_program{
	int x,y;
	cin>>x>>y;
	int xsq = x*x;
	int ysq = y*y;
	int l = x;
	
	repeat(y-x){
		int m = x;
		repeat(y-x){
			int b = m*m;
			int a = l*l;
		        int hypot = a+b;
                        float fl= sqrt(hypot);
                        int in = sqrt(hypot);

			if(hypot<=ysq && hypot>=xsq && fl==in){
				if(l>=m){
					cout<<m<<" "<<l<<" "<<fl<<endl;
				}
				else {
					cout<<l<<" "<<m<<" "<<fl<<endl;
				}
			}
			
			m=m+1;
		}
		l=l+1;
	}
	
	

}

Grading criterion: Quality of variable names
Rating A: Good variable names
Rating B: Ok Variable Names
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: B
Problem: Write a program to accept two numbers from the user start and end and print the Pythagorean triplets within the range of start to end, both inclusive, but the triplets should not have any common factor. If no such triplets exist, then print 0. The triplets should be in increasing order.

Student submission:
#include<simplecpp>
main_program
{
	int start,end,a,b,c;
	cin>>start>>end;
	a=start;
	b=start+1;
	c=start+2;
	while(a<=end-2)
	{
		
		while(b<=end-1)
		{
			while(c<=end)
			{
				int l=c*c;
				int m=b*b+a*a;
				if(l==m)
				{
					cout<<a<<" "<<b<<" "<<c<<endl;
					c++;
				}
				else if(l!=m)
				{
					c++;
				}
			}
				b++;
		}		c=b+1;
	
			a++;
			b=a+1;
			c=b++;
	}

}

Grading criterion: Quality of variable names
Rating A: Good variable names
Rating B: Ok Variable Names
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: B
Problem: Write a program to accept two numbers from the user start and end and print the Pythagorean triplets within the range of start to end, both inclusive, but the triplets should not have any common factor. If no such triplets exist, then print 0. The triplets should be in increasing order.

Student submission:
#include <simplecpp>
main_program{
	int start;int end;int cnt=0;int x=2; int m=0;
	cin>>start;
	cin>>end;
	for(int i=start;i<=end;i++)
	{
		for(int j=i;j<=end;j++)
		{
			for(int k=j;k<=end;k++)
			{
                                while(x<=i){
                                     if(i%x==0 && j%x==0 && k%x==0){
					     m++;}
				     x++;
				}
				x =2;
				if((k*k)==(i*i + j*j)&&m==0 ){
					cnt++;
					cout<<i<<" "<<j<<" "<<k<<endl;
				}
				m=0;
			}
		}
	}
	if(cnt==0)
		cout<<"0";
}

Grading criterion: Quality of variable names
Rating A: Good variable names
Rating B: Ok Variable Names
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: C
Problem: Write a program to accept two numbers from the user start and end and print the Pythagorean triplets within the range of start to end, both inclusive, but the triplets should not have any common factor. If no such triplets exist, then print 0. The triplets should be in increasing order.

Student submission:
#include<simplecpp>
main_program
{
  int start, end;
  cin>>start>>end;
  int a,b,c;
  
  for(int i=start+1; i<end; i++)
  { 
    a=start;
    b=i;
    
        
    if(sqrt(a*a+b*b)>start && sqrt(a*a+b*b)<end)
    { c=sqrt(a*a+b*b);
    cout<<a<<" "<<b<<" "<<c<<"\n";}
  }

}

Grading criterion: Quality of variable names
Rating A: Good variable names
Rating B: Ok Variable Names
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: B
Problem: Write a program to accept two numbers from the user start and end and print the Pythagorean triplets within the range of start to end, both inclusive, but the triplets should not have any common factor. If no such triplets exist, then print 0. The triplets should be in increasing order.

Student submission:
#include<simplecpp>
main_program{
	
	int x;int y;int p;
	cin>>x>>y;
		for(int a=x;a<y+1;a=a+1){
			for(int b=x;b<y+1;b=b+1){
				for(int c=x;c<y+1;c=c+1){
					p=a*a+b*b;
					if(c*c==p){
						if(a<b&&b<c){
							for(int i=2;i<b;i++){
								if(b%i==0&&a!=i);
							}
									

					cout<<a<<" "<<b<<" "<<c<<endl;
							
							
					}
			}
		}
		}
}
			
             
	
}

Grading criterion: Quality of variable names
Rating A: Good variable names
Rating B: Ok Variable Names
Rating C: Poor Variable Names
Rating D: 0
Assigned grade: C