Write and run a program that reads two integers and then uses the conditional expression operator to print either "Multiple" or "Not" according to whether one of the integers is a multiple of the other.
<< Go to Index Page >>
<< Go to Index Page >>
#include
উত্তরমুছুনmain()
{
int a, b;
while(scanf("%d %d", &a, &b)==2)
{
if(a%b==0||b%a==0)
{
printf("Multiple\n");
}
else
{
printf("Not\n");
}
}
return 0;
}
Hope you will be continued....
উত্তরমুছুন#include"stdio.h"
উত্তরমুছুনvoid main()
{
int a,b;
printf("Enter your first value:\t");
scanf("%d",&a);
printf("\nEnter your 2nd value:\t");
scanf("%d",&b);
printf("\nResult is:");
if(a>b)
{
if(a%b==0)
printf("\nMultiple");
else
printf("\nNot Multiple");
}
else if(a<b)
{
if(b%a==0)
printf("\nMultiple");
else
printf("\nNot Multiple");
}
else
printf("\nMultiple");
getch();
}
উত্তরমুছুন#include
int main()
{
int a, n;
printf("Enter a number: ");
scanf("%d", &n);
for(a = 0; a <= n; a++)
{
if (n == a * a)
{
printf("YES");
return 0;
}
}
printf("NO");
return 0;
}
Summer 2017
উত্তরমুছুনID#201610042
Answer to the Question No 6:
https://drive.google.com/file/d/0B99eePh0LV8gNXJtRldtTzdud0E/view?usp=drivesdk
https://www.dropbox.com/s/a3hcy9jcu5oycay/check06.cpp?dl=0
উত্তরমুছুনID : 201620195
উত্তরমুছুনhttps://drive.google.com/open?id=0B9K31ospCyFjb1E5STNXNjNQb0k
https://drive.google.com/open?id=0BzTqZMBWR6eOQW5SSk00di1VUGc
উত্তরমুছুনhttps://drive.google.com/open?id=0B8369pAqjVVpMklYVF9VYkdlOUU
উত্তরমুছুনwp. https://drive.google.com/open?id=0B8369pAqjVVpMklYVF9VYkdlOUU
উত্তরমুছুনID:201520552
উত্তরমুছুনhttps://drive.google.com/open?id=0B5pG0kIjzgEKRG9vd0kxeHU1N0k
ID 201610456
উত্তরমুছুনMD USUF MIA
https://drive.google.com/open?id=0B_PIGnOMR0K2Nk5wVUQ4UVF2cHc
1.https://drive.google.com/open?id=0B7UQyRdu6h2wSXJxUG5VTkkwSU0
উত্তরমুছুনId= 201710494
উত্তরমুছুনhttps://www.dropbox.com/s/o55m0k7gpvbjrmm/prob%206.cpp?dl=0
https://drive.google.com/open?id=0B3bVD5Ppt_STc3htTmFvUTI0cUU
উত্তরমুছুনhttps://drive.google.com/open?id=0Byxq3aat_mNSZ1h1NWpWZF9LX3M
উত্তরমুছুনID: 201620318
উত্তরমুছুনhttps://drive.google.com/open?id=0B2gcteJZycWoa0NsSlNTZ3FCa2M
https://drive.google.com/open?id=0BzKpnVbF4fc3RGJEdGJhb0ttZjg
উত্তরমুছুনhttps://drive.google.com/open?id=0BzKpnVbF4fc3RGJEdGJhb0ttZjg
উত্তরমুছুনID:-201610058
উত্তরমুছুন1.https://drive.google.com/open?id=0B7UQyRdu6h2wSXJxUG5VTkkwSU0