//Downloaded From www.c4cpp.co.nr
//(C)2009.All rights reserved.
#include<iostream.h>
#include<conio.h>
#include<string.h>
#include<stdio.h>
#include<ctype.h>
void main()
{
clrscr();
char *Name="AnnUal ExaMiNaTION";
for(int x=0;x<strlen(Name);x++)
if(islower(Name[x]))
Name[x]=toupper(Name[x]);
else
if(isupper(Name[x]))
if(x%2!=0)
Name[x]=tolower(Name[x-1]);
else
Name[x]--;
cout<<Name<<endl;
getch();
}
Programs Can Also Be Downloaded From The Folders Below....[Or Scroll Down]
Showing posts with label Predict Output. Show all posts
Showing posts with label Predict Output. Show all posts
Predict Output 2
Click Here To Download C++ File Of This Program
Predict Output
Click Here To Download C++ File Of This Program
//Downloaded From www.c4cpp.co.nr
//(C)2009.All rights reserved.
#include<iostream.h>
#include<conio.h>
void main()
{clrscr();
int i=0,ua=0,ub=0,uc=0,fail=0;
while(i<=5)
{switch(i++)
{case 1:
case 2:++ua;
case 3:
case 4:++ub;
case 5:++uc;
default:++fail;
}
}
cout<<" ua="<<ua<<",ub="<<ub<<",uc="<<uc<<",fail="<<fail;
getch();
}
Subscribe to:
Posts (Atom)