Answers for "input output in c"

3

c user input

#include <stdio.h>
int main()
{
    int testInteger;
    printf("Enter an integer: ");
    scanf("%d", &testInteger);  
    printf("Number = %d",testInteger);
    return 0;
}
Posted by: Guest on April-14-2020
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
-2

c input output

#include <stdio.h>    
int main()
{ 
    // Displays the string inside quotations
    printf("C Programming");
    return 0;
}
Posted by: Guest on November-03-2020

Browse Popular Code Answers by Language