1 / 9

welcome

welcome. computer science. Presented By:. Vikas & Manoj Submitted to : Sanwari Sharma PGT Computer Science. How to find that a character is an Alphabet or not. PROGRAM NO. 1. #include<conio.h#include<iostream.h> > void main() { clrscr(); char ch; cout<<"enter any character"<<endl;.

merrill
Télécharger la présentation

welcome

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. welcome computer science

  2. Presented By: • Vikas & Manoj Submitted to : Sanwari Sharma PGT Computer Science

  3. How to find that a character is an Alphabet or not PROGRAM NO. 1

  4. #include<conio.h#include<iostream.h> > void main() { clrscr(); char ch; cout<<"enter any character"<<endl;

  5. cin>>ch; if(ch>='a'&&ch<='z'||ch>='A'&&ch<='Z') { cout<<ch<<" "<<"is an alphabet"; cout<<endl; } else cout<<ch<<" "<<"is not an alphabet"; getch(); }

  6. How to find no. of years ,month , Weeks , and days from given no. of days PROGRAM NO. 2

  7. #include<iostream.h> #include<conio.h> void main() { clrscr(); int days,year,month,week,x,y; cout<<"enter no. of days"; cin>>days; cout<<endl;

  8. year=days/365; month=days%365/30; x=days%365%30; week=x/7; y=x%7; cout<<days<<"days contain"<<year<<"years"<<month<<"months"<<week<<"weeks"<<y<<"days"; getch(); }

More Related