Su Dip Kumar Man Dal
Su Dip Kumar Man Dal
Su Dip Kumar Man Dal
Computer project
Class- XI
Roll no.- 31
Subject- Computer
To display a sentence
#include<iostream.h>
#include<conio.h>
void main()
}
Print Prime Number
#include<iostream.h>
#include<conio.h>
void main()
clrscr();
cin>>start;
cin>>end;
count=0;
if(i%j==0)
count++;
break;
if(count==0)
cout<<i<<" ";
getch();
}
#include<conio.h>
void main()
clrscr();
cin>>num1;
cin>>num2;
swap=num1;
num1=num2;
num2=swap;
getch();
Print String
#include<iostream.h>
#include<conio.h>
#include<string.h>
#include<stdio.h>
void main()
clrscr();
char str[20];
gets(str);
cout<<"Hello, "<<str;
getch();
void main()
clrscr();
cin>>num;
tab=num*i;
getch();
#include<conio.h>
void main()
clrscr();
cin>>rows;
cout<<" ";
while(k!=(2*i-1))
cout<<"* ";
k++;
k=0;
cout<<"\n";
getch();
}
Reverse Number
#include<iostream.h>
#include<conio.h>
void main()
clrscr();
int num, rev=0, rem;
cin>>num;
while(num!=0)
rem=num%10;
rev=rev*10+rem;
num=num/10;
cout<<"Reverse = "<<rev;
getch();
#include<conio.h>
void main()
clrscr();
int a, b, big;
cout<<"Enter two number : ";
cin>>a>>b;
if(a>b)
big=a;
else
big=b;
getch();
#include<conio.h>
void main()
clrscr();
char ch;
cout<<"Enter an alphabet : ";
cin>>ch;
ch=='u' || ch=='U')
cout<<"This is a vowel";
else
getch();
#include<conio.h>
void main()
clrscr();
int num;
if(num%2==0)
else
getch();
#include<conio.h>
void main()
clrscr();
int num,i,count=0;
cout<<"Enter a number:";
cin>>num;
for(i=2;i<num;i++)
if(num%i==0)
count++;
break;
if(count==0)
else
getch();
}
Calculate Grade of Student
#include<iostream.h>
#include<conio.h>
void main()
clrscr();
int mark[5], i;
float sum=0,avg;
cin>>mark[i];
sum=sum+mark[i];
avg=sum/5;
if(avg>80)
cout<<"A";
cout<<"B";
cout<<"C";
else
cout<<"D";
getch();