brozikcz

Untitled

Oct 7th, 2011
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.38 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(){
  4.     double c;
  5.     char d;
  6.  
  7.     printf ( "Desetinne cislo (float):\n" );
  8.    scanf  ( "%f", &c ); /* pozor, & c, pozor %f */
  9.    printf ( "c = %f\n", c ); /* zde %f */
  10.  
  11.    printf ( "Znak (char), ne whitespace:\n" );
  12.    scanf  ( "%c", &d ); /* pozor, & d */
  13.    printf ( "d = %c\n", d );
  14.    /* Proc nelze znak zadat?
  15.     */
  16.  
  17.     return(0);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment