Answers for "printf scanf in c"

3

how to scanf in c

#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
-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