~ubuntu-branches/ubuntu/oneiric/clif/oneiric

« back to all changes in this revision

Viewing changes to tests/test45.ci

  • Committer: Bazaar Package Importer
  • Author(s): Adrian Bunk
  • Date: 2002-01-25 14:05:49 UTC
  • Revision ID: james.westby@ubuntu.com-20020125140549-v5mmddxqlcrgzhd2
Tags: upstream-0.93
ImportĀ upstreamĀ versionĀ 0.93

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
int a;
 
2
printf ("input a\n");
 
3
scanf ("%d", a);
 
4
 
 
5
if (a)
 
6
{
 
7
  double a;
 
8
  printf ("input double a\n");
 
9
  scanf ("%lf", a);
 
10
  printf ("double a = %g\n", a);
 
11
}
 
12
else
 
13
{
 
14
  char a;
 
15
  printf ("input char a\n");
 
16
  scanf ("%c", a);
 
17
  printf ("char a = %d\n", a);
 
18
}
 
19
printf ("int a = %d\n", a);
 
20
exit;