Pls help me to write a c++ program that reads or accept an integer and output its equivalent into base two

2. Write a c++ program which reads an integer and decides whether the integer is a multiple of 5 pls you can help me to send it to my mail address thanks and god bless you
<email snipped>

Salem commented: Thread hijacking, YELLING and an email address for "I'm too lazy to come back" - triple FAIL!!!!! -4

Recommended Answers

All 3 Replies

OK, but you need to read the Forum Rules and the Sticky Posts first.

I suppose you're looking for something like that if i am not mistaken

#include <stdio.h>

int main()
{
 int x;
 printf("Please enter an integer\n");
 scanf( "%d", &x);
 if(x%5 = 0)
 printf( "\n", x, "is a multiple of 5");
else
printf(X, "is not a multiple of 5");
return 0;
}
commented: Stop doing people's homework for them -2
commented: and this is wrong, too. -1

>I suppose you're looking for something like that if i am not mistaken
I can't tell if you're incompetent or simply posting bad code to get the OP a failing grade.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.