0% found this document useful (0 votes)
7 views1 page

C Programs for Passing Marks and Even/Odd Check

The document contains two solved C programs. The first program checks if a student's marks are 40 or above to determine if they have passed, while the second program checks if a number is even or odd. Both programs include user input and display appropriate messages based on the conditions.

Uploaded by

meerabadan841
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views1 page

C Programs for Passing Marks and Even/Odd Check

The document contains two solved C programs. The first program checks if a student's marks are 40 or above to determine if they have passed, while the second program checks if a number is even or odd. Both programs include user input and display appropriate messages based on the conditions.

Uploaded by

meerabadan841
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

Program 11.

1(solved)
#include<stdio.h>
#include<conio.h>
void main()
{
int marks;
clrscr();
printf("Enter your marks:");
scanf("%d",&marks);
if(marks>=40)
printf("Congratulations! You have passed");
getch();
}
your program succeded...
Program 11.4(solved)
#include<stdio.h>
#include<conio.h>
void main()
{ process: { n=10/2
it is solve so it is even.
int n;
n=11/2 it is unsolved so it is odd.}
clrscr();
printf("Enter a number:");
scanf("%d",&n);
if(n%2==0)
printf("%d is even.",n);
else
printf("%d is odd.",n);
getch();
}
your program succeded...

You might also like