Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(){
- double c;
- char d;
- printf ( "Desetinne cislo (float):\n" );
- scanf ( "%f", &c ); /* pozor, & c, pozor %f */
- printf ( "c = %f\n", c ); /* zde %f */
- printf ( "Znak (char), ne whitespace:\n" );
- scanf ( "%c", &d ); /* pozor, & d */
- printf ( "d = %c\n", d );
- /* Proc nelze znak zadat?
- */
- return(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment