Answers for "for input output c is based on"

5

Syntax To Take Input In C

Integer: Input: scanf("%d", &intVariable); Output: printf("%d", intVariable);
Float: Input: scanf("%f", &floatVariable); Output: printf("%f", floatVariable);
Character: Input: scanf("%c", &charVariable); Output: printf("%c", charVariable);
Posted by: Guest on August-12-2020
1

get user input c

int c;
printf( "Enter a value :");
c = getchar( );
Posted by: Guest on June-30-2020

Browse Popular Code Answers by Language