https://forms.gle/3kjNwvaLa2rTzRFX7
Notes for computer science
Notes for BCA BSC BSc.SE
Monday, 20 May 2024
Tuesday, 6 February 2024
Thursday, 1 February 2024
Monday, 10 April 2023
Windows Programming using C#
Chapter 1 Introduction
Chapter 2 Windows Application and Control
Chapter 3 Function array String Property, delegate and event
Chapter 4 Database Connectivity
Wednesday, 11 January 2023
Notes for BCA I Sem Fundamentals of Computer Science and Information technology
Fundamentals of Computer Science and Information technology
chapter 1 Introduction to Computer and History
chap 2 Computer Peripherals & Memory
Thursday, 18 August 2022
Variables in C are associated with data type. Each data type requires an amount of memory and performs specific operations.
There are some common data types in C −
int − Used to store an integer value.
char − Used to store a single character.
float − Used to store decimal numbers with single precision.
double − Used to store decimal numbers with double precision.
#include <stdio.h>
int main() { // datatypes int a = 10; char b = 'S'; float c = 2.88; double d = 28.888; printf("Integer datatype : %d\n",a); printf("Character datatype : %c\n",b); printf("Float datatype : %f\n",c); printf("Double Float datatype : %lf\n",d); return 0;
Control statement
if statement:-
- #include<stdio.h>
- int main(){
- int number=0;
- printf("Enter a number:");
- scanf("%d",&number);
- if(number%2==0){
- printf("%d is even number",number);
- }
- return 0;
- }
Program to find the largest number of the three.
- #include <stdio.h>
- int main()
- {
- int a, b, c;
- printf("Enter three numbers?");
- scanf("%d %d %d",&a,&b,&c);
- if(a>b && a>c)
- {
- printf("%d is largest",a);
- }
- if(b>a && b > c)
- {
- printf("%d is largest",b);
- }
- if(c>a && c>b)
- {
- printf("%d is largest",c);
- }
- if(a == b && a == c)
- {
- printf("All are equal");
- }
- }
if else- if statement- #include<stdio.h>
- int main(){
- int number=0;
- printf("enter a number:");
- scanf("%d",&number);
- if(number==10){
- printf("number is equals to 10");
- }
- else if(number==50){
- printf("number is equal to 50");
- }
- else if(number==100){
- printf("number is equal to 100");
- }
- else{
- printf("number is not equal to 10, 50 or 100");
- }
- return 0;
- }
Thursday, 4 August 2022
Wednesday, 3 August 2022
c program structure
//C
program structure
/**
//
file: age.c //Documentation
* author: you
* description: program to find our age.
*/
#include <stdio.h> //Link
#define BORN
2000 //Definition
int
age(int current); //Global
Declaration
int
main(void) //Main()
Function
{
int current
= 2021; //Local
declaration
printf("Age: %d", age(current));
return 0;
}
int
age(int current)
{ return current - BORN;
//Subprograms
}
Tuesday, 2 August 2022
1) Demonstrate C programming Structure
2) Use of data types
3) Use of control statements
4) Use of looping statements
5) Demonstrate input output statements
6) Use of user define function
7) Demonstrate recursion function
8) Use of array
9) Demonstrate string library function
10) Demonstrate structure