Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript
MySQL
PC interface
Powershell
Perl
PHP
VBScript
Visual Basic
XML

Make money selling software. Check this out here

Hosted clickbank mall. Check this out here


Sedo - Buy and Sell Domain Names and Websites project info: programmershelp.co.uk Statistics for project programmershelp.co.uk etracker® web controlling instead of log file analysis

   Misc

   Amazon

   Links

    


If Else example
 

 

 

Description

This is an example of an if / else statement

Code

/*shows an if else example*/
#include <stdio.h>

main()
{
int result;
/*display message*/
puts("Please enter yor grade.\n");
/*get user input*/
scanf("%d" ,&result);
/*check result and display a message*/
if(result<50)
puts("You failed.\n");
else
puts("You passed.\n");

return 0;

}

Information

tested using LCC Win 32 , Visual C++ 6

 

 

 

 

Download

ifelse1.txt


 




   Sponsors
 

   Software
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals

   Source Code
Screen capture(VB)
text spacing(CSS)
control pad example(GameBoy)
display the size of the hard disk using the WMI(C Sharp)
Simple metatag generator(PHP)
delete a directory(C Sharp)
IP address to host name(PHP)
MP3 searcher(VBScript)

    




Copyright © 2003 by programmershelp.co.uk