If 4 digits number is input through the keyboard, Write a
program to calculate sum of its 1st & 4th digit.
Answer Posted / chirag
#include<stdio.h>
#include<conio.h>
void main()
{
int num,a,b,sum;
clrscr();
printf("enter a four digit no");
scanf("%d",&num);
a=num%10;
b=num/1000;
sum=a+b;
printf("sum is =%d",sum);
getch();
}
| Is This Answer Correct ? | 30 Yes | 15 No |
Post New Answer View All Answers
What is a loop?
What is the symbol indicated the c-preprocessor?
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
What is NULL pointer?
What is identifiers in c with examples?
write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.
Why c is a mother language?
How to write a multi-statement macro?
Write a program for Overriding.
Explain how do you convert strings to numbers in c?
will u please send me the placement papers to my mail???????????????????
What is output redirection?
Explain what standard functions are available to manipulate strings?
how to introdu5ce my self in serco
How can I call fortran?