sum of two variables

/*sum of two variables*/ #include<stdio.h> main() { int a,b; clrscr(); printf(“enter value of a and b for sum”); scanf(“%d%d”,&a,&b); /*a=10,b=20;   */ printf(“\nvalue of sum is=%d”,(a+b)); printf(“\nenter value of a and b for subtraction”); scanf(“%d%d”,&a,&b); printf(“\n value of subtraction is=%d”,(a-b)); printf(“\nenter value of a nd b for multipication”); scanf(“%d%d”,&a,&b); printf(“\nvalue of multipication is=%d”,(a*b)); printf(“\nenter value of [...] Continue reading →

Different data types

/*Different data types*/ #include<stdio.h> main() { int a; float b; char c; clrscr(); a=125, b=5.25, c=’Z’; printf(“value of a is=%d”,a); printf(“\nvalue of b is=%f”,b); printf(“\nvalue of c is=%c”,c); getch(); } Output: Continue reading →

To print Student information

/*Student information*/ #include<stdio.h> main() { clrscr(); printf(“\t STUDENT RECORD\t”); printf(“\nNAME \t CLASS \t ROLLNO”); printf(“\nNisha \t MCA \t 2701″); printf(“\nNeha \t BCA \t 3456″); printf(“\nPooja \t MCA \t 5678″); printf(“\nPriya \t MSC \t 2341″); printf(“\nGeeta \t BSC \t 5634″); getch(); } Output: Continue reading →

Project on Canteen Management

//CANTEEN MANAGEMENT SOFTWARE #include<iostream.h> #include<conio.h> #include<string.h> #include<stdio.h> #include<process.h> #include<iomanip.h> #include<dos.h> #include<graphics.h> void dev() { clrscr(); for(int x=50;x>=20;x–) { textcolor(YELLOW+LIGHTGRAY); delay(160); gotoxy(x,12); cputs(“  P R O J E C T   “); gotoxy(x,14); cputs(“  D E V E L O P E D  B Y  :  “); gotoxy(x,16); cputs(“w.w.w computernotes.in  #”); } gotoxy(x,24); cputs(“PRESS ANY KEY TO [...] Continue reading →

Project on Pay Roll System

//Project on Pay Roll System #include <stdio.h> ///for input output functions like printf, scanf #include <stdlib.h>#include <conio.h>) #include <string.h> #include<dos.h> #include<graphics.h>  ///string operations #include<conio.h> #include<iostream.h> #include<fstream.h> class banner { char *str,ch; public: banner() { str=”program to text animation……….”; } void alternate(); }; void banner::alternate() { int i,j,flag=0,c1=10; strcpy(str,”PROJECT WORK”); for(i=0;!kbhit();i++) { //cleardevice();/********for clearing part of [...] Continue reading →

Project on Collage Library Management System

//Project on Collage Library Management  System #include <stdio.h> ///for input output functions like printf, scanf #include <stdlib.h>#include <conio.h>) #include <string.h> #include<dos.h> #include<graphics.h>  ///string operations #include<conio.h> #include<iostream.h> class banner { char *str,ch; public: banner() { str=”program to text animation……….”; } void alternate(); }; void banner::alternate() { int i,j,flag=0,c=10; strcpy(str,”PROJECT WORK”); for(i=0;!kbhit();i++) { //cleardevice();/********for clearing part of [...] Continue reading →

Operator in C++

operator are mathematical symbols,which are used to perform some logical and mathematical calculation.operators are three types. 1) U nary operators 2) Binary operators 3) Ternary operators 1) U nary operators: In u nary  operators,we use one operand. U nary operators appear before their operand .They associate from right to left. There are two types of [...] Continue reading →
Page 1 of 33123456»102030...Last »