Professional Documents
Culture Documents
PART A
PART C
1. #include<stdio.h>
void main ()
int x, y;
scanf(“%d”, &x) ;
scanf(“%d”, &y) ;
if(x>y)
printf(“ x is greater “) ;
else
printf(“y is greater “) ;
}
2. include<stdio.h>
void main ()
{
int x;
printf(“enter the value of x”) ;
scanf(“%d”, &x) ;
if(x%5==0)
{
x =x+10;
}
else
{
x=x-10;
}
printf(“value of x = %d”, x) ;
}