Math, asked by arpitamannaapupdjoba, 1 year ago

write a program,which reads an integer and prints its second digit

Answers

Answered by Anonymous
1
#include <stdio.h> int main() { int number; // printf() dislpays the formatted output printf("Enter an integer: "); // scanf() reads the formatted input and stores them scanf("%d", &number); // printf() displays the formatted output printf("You entered: %d", number); return 0; }

Output

Enter a integer: 25 You entered: 25

arpitamannaapupdjoba: hello
Similar questions