Posts

Showing posts from November, 2022

LAB RECORD PROGRAM NO -3

 3.Write a C Program to check whether a given number is even or odd.  #include<stdio.h>   #include  <conio.h> void main()  {   int n;   printf("Enter an integer\n");   scanf("%d", &n);   if (n%2 == 0)   printf("\nGiven Number %d is an Even Number.",n);   else  printf("\nGiven Number %d is an Odd Number.",n ");   getch();  }

LAB RECORD PROGRAM NO -2

 2. Write a C Program to print Multiplication Table of any given number.  #include<stdio.h> #include  <conio.h> void main()  {  int n,i=1;  printf("\nEnter your n: ");   scanf("%d", &n);  printf(“\n MULTIPLICATION TABLE OF %d\n”,n);  do  {  printf(“%d x %d = %d\n”,n,i,n*i);  i=i+1;  }while(i<=10);  getch();  } 

LAB RECORD PROGRAM NO -1

1.Write a C Program to demontate the Ternary Operator. #include <stdio.h> #include<conio.h> void main()  {  int age;  // take input from users  printf("\nEnter your age: ");   scanf("%d", &age);   // ternary operator to find if a person can vote or not  (age >= 18) ? printf("You can vote") : printf("You cannot vote");  getch();  }

PPS RECORD PART 1

 This is theory part of the record. PPS RECORD-1
Image
 PPS LAB SYLLABUS
Image
 PPS THEORY SYLLABUS
 WELCOME AICTE-CSE 2022 BATCH