Subject: Re: HELP...C programing
To: None <netbsd-help@netbsd.org>
From: None <nobody@nowhere.org>
List: netbsd-help
Date: 11/06/2001 20:29:20
emrecik@hotmail.com (EMRE Can) writes:
> I am interested to get your help programming that involves this 2
> question on the bottom....I'll be really appricaite that.
> due by this Friday.
> 
> 1) Write a program that defines five integer variables and initialize
> them to 1,10,100,1000 and 10000. If then prints them on a single line
> separated by space characters using the decimal conversion code (%D)
> on the next line with the float conversion code (%F)
> Note the differences between the results. How do you explain them?

#!/bin/sh

a=1; b=10; c=100; d=1000; e=10000;
printf "%d %d %d %d %d\n" $a $b $c $d $e
printf "%f %f %f %f %f\n" $a $b $c $d $e
while : ; do echo "I'm a lazy sod"; done

# end