1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
My name is Ann [436]
3 years ago
13

Write a program that accepts a number as input, and prints just the decimal portion. Your program must account for negative numb

ers.
Sample Run
Enter a number: 15.789
Sample Output
0.789
Computers and Technology
1 answer:
sesenic [268]3 years ago
6 0

Answer:here I write code

Explanation:

#include <stdio.h>

int main(void) {

char x[]="" ;

int a,b,Flag=0;

gets(x);

b=sizeof(x);

for(a=0; a<b; a++){

if(x[a]=='.')

Flag=1;

if(Flag==1)

printf("%c",x[a]);

}

return 0;

}

You might be interested in
Computer operates nearly 100% accurately but why is the phrase'garbage in garbage out'(GIGO) associated with their use?Describe
k0ka [10]

Answer:

A program gives inaccurate results due to inaccurate data provided because a computer will always attempt to process data given to it. Said another way, the output quality of a system usually can't be any better than than the quality of inputs.

Explanation:

Techopedia Explains Garbage In, Garbage Out (GIGO)

<h3>Mark me a brainlist</h3>
8 0
3 years ago
How Do you get Splatoon two for free
IRISSAK [1]

Answer:

Well the real question would be how comfortable are you with computer software if not good or none at all I feel the answer would simply be buy the game in the Nintendo store or you could buy the key for the Nintendo store for much cheaper on 3rd party websites give that a try hope this helped you. :)

5 0
3 years ago
Read 2 more answers
Access 1.04 knowing your audience
luda_lava [24]

Answer:

What?

Explanation:

I would like to help, but what is the question

4 0
4 years ago
BRAINLIEST TO THE BEST ANSWER!!!!!!!!!!!!!
NeTakaya

Answer:A sitemap break a website down to it's most basic components and a wirefram gives more details of what each page will contain but if you do have fleshed out content ready bring that content into your wireframed to see how it fits

Explanation:

3 0
3 years ago
55 POINTS, IN JAVA
ikadub [295]

public class JavaApplication82 {

   

   public static void main(String[] args) {

       

       for (int i = 1; i <= 9; i++){

           for (int w = 0; w < i; w++){

               System.out.print("*");

           }

           System.out.println("");

           

       }

   }

   

}

This works for me.

6 0
3 years ago
Other questions:
  • Match the job skills with the correct job role.
    12·1 answer
  • A digital footprint is all of the information on-line about a person posted by that person or others, ____________. intentionall
    14·1 answer
  • Question / UJU
    11·1 answer
  • 22 If you are involved in a violation and you do not have insurance to comply with the __________________, your driver license a
    9·2 answers
  • Triggers are types of buttons seen in the input devices for which platform?
    14·1 answer
  • Using the same Apple ID for multiple devices will definitely sync them all together <br> True/False
    7·2 answers
  • What are the defenses to protect against these attacks?
    13·1 answer
  • Which of the following describes all illustrations created by freehand?
    15·1 answer
  • Does anyone know what's wrong with this code in Unity? HELP FAST PLEASE! This is for my game design course, I will give brainies
    11·1 answer
  • Artificial intelligence (ai) in perspective is a complex and interdisciplinary field that involves several specialties, includin
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!