WAP to find that given no is small or capital
Answers were Sorted based on User's Feedback
Answer / pinky
main()
{
char ch;
scanf("%c",&ch);
if(ch>64&&ch<91)
printf("capital");
else
printf("small");
}
in scanf fn. it must be '%c' otherwise the ans wl be 'small'
always (check it)
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / naresh.s
main()
{
char ch;
scanf("%d",&ch);
if(ch>64&&ch<91)
printf("capital");
else
printf("small");
}
| Is This Answer Correct ? | 2 Yes | 2 No |
when user give a number it multiply with 9 without useing '+' and '*' oprator
How can I invoke another program from within a C program?
what is the output of printf("%d",(scanf("%d",10));
What is the difference between far and near ?
the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....
what is event driven software and what is procedural driven software?
How do I declare a pointer to an array?
1. Write a program to reverse every second word in a given sentence.
A stack can be implemented only using array?if not what is used?
What is the difference between ‘g’ and “g” in C?
what is the flow of execution in cprogram? ex:printf();,scanf();
If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.