Professional Documents
Culture Documents
prg 4,5,6
prg 4,5,6
Name-Pranjal Dalakoti
Roll No-46
Section-J1
Course-Btech
Branch-CSE
*/
#include <stdio.h>
int main()
if((yr%400)==0)
else
}
}
else
if((yr%4)==0)
else
Output:
Name-Pranjal Dalakoti
Roll No-46
Section-J1
Course-Btech
Branch-CSE
*/
#include <stdio.h>
int main()
char ch;
scanf("%c", &ch);
if((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z'))
else
return 0;
Output :
‘a’ is alphabet
/* program to find the average of marks of two out of three subjects which are greater
Name-Pranjal Dalakoti
Roll No-46
Section-J1
Course-Btech
Branch-CSE
*/
#include <stdio.h>
int main()
int a,b,c;
scanf("%d",&b);
scanf("%d",&c);
{
avg=((b+c)/2.0);
else if(b<a&&b<c)
avg=((a+c)/2.0);
else if(c<b&&c<a)
avg=((a+b)/2.0);
else
avg=((a+b)/2.0);
Output: