Answers for "scanf in c"

C
2

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

scanf

#include <stdio.h>
int main()
{
    int a;
    float b;

    printf("Enter integer and then a float: ");
  
    // Taking multiple inputs
    scanf("%d%f", &a, &b);

    printf("You entered %d and %f", a, b);  
    return 0;
}
Posted by: Guest on July-26-2020
4

c scanf

scanf("%d",&variable);

/*
% is a format specifier

%d or %i 		for int
%ld or %li for 	long int
%f for 			float
%lf for 		double
%c for 			char
%s for 			string
*/
Posted by: Guest on February-11-2021
3

scanf in c

#include <stdio.h>

int main () {
   scanf("%s", str);
   printf("%s"str);
   scanf("%d", int);
   printf("%d"int);
   return(0);
}
Posted by: Guest on August-22-2020
2

scanf c

scanf("%d", &b);
Posted by: Guest on September-24-2020
0

how to scan in c

scanf("%d",&int);
Posted by: Guest on February-21-2020

Code answers related to "C"

Browse Popular Code Answers by Language