#include <stdio.h>
int main()
{
int month,date;
printf("Enter the month and date of your birth in the format mm-dd:\n");
scanf("%d-%d",&month,&date);
if(month<1month>12date<1date>31) {
printf("That is not a valid date.\n");
return 1;
}
printf("Your zodiac sign is ");
switch(month) {
case 1:
if (date<20) printf("Capricorn\n");
else printf("Aquarius\n");
break;
case 2:
if (date<19) printf("Aquarius\n");
else printf("Pisces\n");
break;
case 3:
if (date<21) printf("Pisces\n");
else printf("Aries\n");
break;
case 4:
if (date<20) printf("Aries\n");
else printf("Taurus\n");
break;
case 5:
if (date<21) printf("Taurus\n");
else printf("Gemini\n");
break;
case 6:
if (date<21) printf("Gemini\n");
else printf("Cancer\n");
break;
case 7:
if (date<23) printf("Cancer\n");
else printf("Leo\n");
break;
case 8:
if (date<23) printf("Leo\n");
else printf("Virgo\n");
break;
case 9:
if (date<23) printf("Virgo\n");
else printf("Libra\n");
break;
case 10:
if (date<23) printf("Libra\n");
else printf("Scorpio\n");
break;
case 11:
if (date<22) printf("Scorpio\n");
else printf("Sagittarius\n");
break;
case 12:
if (date<22) printf("Sagittarius\n");
else printf("Capricorn\n");
break;
}
return 0;
}
Yes, you can use for-loop in a C program compiled by Turbo C.
Editor - edits text Compiler - compiles the program Linker - links the program Debugger - helps finding bugs
Turbo c program is from Borland which is an integrated development environment and a computer language. Some of the parts of turbo c were incorporated from the wizard c in 1987, but it was first developed by Dennis Ritchie in 1970.
Turbo Pascal is a style of computer programming. This type of writing language can be used to create a program that prints the alphabet backwards.
No idea what mother program is, but I assume you mean how does Turbo C++ compare to the ISO C++ standard. The last version of Turbo C++ came out in 2006 and was compliant with the standard at that time. However, Embarcadero (the current owners) no longer support Turbo C++, thus it no longer complies with the current ISO standard.
It is 32767 for data-type int, 65535 for unsigned int.
Yes, you can use for-loop in a C program compiled by Turbo C.
tagprice
Turbo c3 or Turbo c4. R.P. Hammad Khan_Haider...
1. Turbo C is an example of Integrated Developing Environment. 2. Turbo C has example programs, the most important is bgidemo.c
Editor - edits text Compiler - compiles the program Linker - links the program Debugger - helps finding bugs
File/Open
With program DosBox,
Turbo c program is from Borland which is an integrated development environment and a computer language. Some of the parts of turbo c were incorporated from the wizard c in 1987, but it was first developed by Dennis Ritchie in 1970.
Eric P. Bloom has written: 'The Turbo C++ trilogy' -- subject(s): C (Computer program language), C++ (Computer program language), Turbo C (Computer file), Turbo C++ 'Turbo C Plus Plus Trilogy' 'The C trilogy' -- subject(s): C (Computer program language)
They are example programs written in Turbo Pascal.
Turbo Pascal is a style of computer programming. This type of writing language can be used to create a program that prints the alphabet backwards.