CPNM HOME WORK













POSTED BY CR@SIVA 

 


 CPNM HOME WORKS WILL UPDATED DAILY BY CR@SIVA.KINDLY UTLISE THEM.TQ
                  
 visit cpnm home works at

          👉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 7:                                                                           POSTED BY CR@SIVA

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);

                 }                                                                                 POSTED BY CR@SIVA

}

return 0;

        }

-----------------------------------------------------------------------------------------------------------------------------





POSTED BY CR@SIVA

Post a Comment

0 Comments

Recent, Random or Label