There are 21 people in a room. They have to form groups of 3
people each. How many combinations are possible? Write a C
program to print the same.
Answer / jeeva kumar
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int i,n,a,b,c=1,d=1;
printf("Enter the tot no of people");
scanf("%d", &n);
printf("In how many they have to form group");
scanf("%d", &a);
b=a;
for(i=0;i<b;i++)
{
c*=n;
d*=a;
n--;
a--;
}
printf("%d",c/d);
getch();
}
| Is This Answer Correct ? | 7 Yes | 0 No |
#include<stdio.h> main() { int i=5; printf("%d",i*i-- - --i*i*i++ + ++i); } tell the answer with correct reason .specially reason is important nt answer ans by turbo c is -39
Explain what math functions are available for integers? For floating point?
what is diognisis?
What is Memory leakage ?
Can we change the value of static variable in c?
Is python a c language?
Who is the main contributor in designing the c language after dennis ritchie?
What is the difference between fread buffer() and fwrite buffer()?
What is a buffer in c?
main difference between c and c++ language
What is the value of y in the following code? x=7;y=0; if(x=6) y=7; else y=1;
#include <stdio.h> int main() { if ("X" <"x") printf("X smaller than x "); } my question is whats the mistake in this program? find it and please tell me..