👉click here👈
=========================================================================
1. Write a program TO display the Marks of students POSTED BY CR@SIVA
A #include<stdio.h>
#include<conio.h>
int main()
{
int marks;
printf("enter the marks of students ");
scanf("%d",& marks);
int index=marks/10;
switch(index)
{
case 10:
printf("gradfe is o\n");
break;
case 9:
printf("gradee is a\n");
break;
case 8:
case 6:
case 5:
default:
printf("unqualified");
}
return 0;
}
-----------------------------------------------------------------------------------------------------------------------------2.Write a program TO display the sequence from 0 to 10 as 0 2 4 6.... POSTED BY CR@SIVA
A.#include <stdio.h>
int main() {
int i;
printf("Sequence of numbers between 0 to 100:\n");
for (i = 0; i <= 100; i++)
{
if(i%2 == 0)
{
printf("%d ", i);
}
return 0;
}
-----------------------------------------------------------------------------------------------------------------------------
0 Comments